snap to sigle-pixel grid

This commit is contained in:
Darafei Praliaskouski 2012-07-22 21:21:52 +03:00
parent be291ca948
commit 9a5ad91ea9

View file

@ -645,7 +645,7 @@ if options.renderer == "mapnik":
oitags = '"'+ "\", \"".join(oitags) +'"'
sqlz = """select %s, ST_LineMerge(ST_Union(way)) as way from (SELECT %s, ST_SnapToGrid(way, %s) as way from planet_osm_line where way && !bbox! and (%s)) as tex
group by %s
"""%(itags, oitags,pixel_size_at_zoom(zoom, 0.7),sql,oitags)
"""%(itags, oitags,pixel_size_at_zoom(zoom),sql,oitags)
mfile.write(xml_layer("postgis-process", layer_type, itags, sqlz, zoom=zoom ))
else:
if roads: