From 1af8acebbcbfb90afaf946752f7322f696046687 Mon Sep 17 00:00:00 2001 From: Darafei Praliaskouski Date: Sun, 22 Jul 2012 21:10:08 +0300 Subject: [PATCH] make sql actually work --- src/komap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komap.py b/src/komap.py index 26a2545..199b451 100644 --- a/src/komap.py +++ b/src/komap.py @@ -643,7 +643,7 @@ if options.renderer == "mapnik": elif layer_type == "line" and there_are_dashed_lines: itags = ", ".join(itags) oitags = '"'+ "\", \"".join(oitags) +'"' - sqlz = """select %s, ST_LineMerge(ST_UnaryUnion(ST_SnapToGrid(ST_Collect(way),%s))) as way from (SELECT * from planet_osm_line where way && !bbox! and (%s)) as tex + sqlz = """select %s, ST_LineMerge((ST_SnapToGrid(ST_Union(way),%s))) as way from (SELECT * from planet_osm_line where way && !bbox! and (%s)) as tex group by %s """%(itags,pixel_size_at_zoom(zoom, 0.5),sql,oitags) mfile.write(xml_layer("postgis-process", layer_type, itags, sqlz, zoom=zoom ))