disable polygon merg for z10-

This commit is contained in:
Komяpa 2011-04-04 13:47:08 +03:00
parent 2246a49265
commit 07abba16bc

View file

@ -447,7 +447,13 @@ for zoom, zsheet in mapniksheet.iteritems():
sqlz = " OR ".join(sql)
itags = ", ".join(itags)
#itags = "\""+ itags+"\""
sqlz = """select %s, ST_PointOnSurface(way) as way
if zoom >= 10:
sqlz = """select %s, ST_PointOnSurface(way) as way
from planet_osm_%s
where (%s) and (%s) and way && ST_Expand(!bbox!,3000) order by way_area
"""%(itags,layer_type,ttext,sqlz)
else:
sqlz = """select %s, ST_PointOnSurface(way) as way
from (
select (ST_Dump(ST_Multi(ST_Buffer(ST_Collect(p.way),0)))).geom as way, %s
from (