From 89cd2a3df9a5e2cc897fb16df30e8eddde9cc0c0 Mon Sep 17 00:00:00 2001 From: Darafei Praliaskouski Date: Sun, 22 Jul 2012 20:53:12 +0300 Subject: [PATCH] bug fix --- src/komap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/komap.py b/src/komap.py index 838c617..26a2545 100644 --- a/src/komap.py +++ b/src/komap.py @@ -641,6 +641,8 @@ if options.renderer == "mapnik": #group by %s #"""%(itags,oitags,sql,oitags) 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 group by %s """%(itags,pixel_size_at_zoom(zoom, 0.5),sql,oitags)