drop short lines when rendering
This commit is contained in:
parent
a8bedf2ffd
commit
92566c324d
1 changed files with 2 additions and 1 deletions
|
@ -811,8 +811,9 @@ if options.renderer == "mapnik":
|
|||
#itags = "\""+ itags+"\""
|
||||
sqlz = """select * from (select %s, ST_Simplify(ST_LineMerge(ST_Union(way)),%s) as way from (SELECT * from %sline where way && ST_Expand(!bbox!,%s) and (%s) and (%s)) as tex
|
||||
group by %s) p
|
||||
where ST_Length(p.way) > %s
|
||||
%s ST_Length(p.way) desc
|
||||
"""%(itags,pixel_size_at_zoom(zoom,4),libkomapnik.table_prefix,max(pixel_size_at_zoom(zoom,20),3000),ttext,sqlz,goitags,order)
|
||||
"""%(itags,pixel_size_at_zoom(zoom,4),libkomapnik.table_prefix,max(pixel_size_at_zoom(zoom,20),3000),ttext,sqlz,goitags,pixel_size_at_zoom(zoom,4),order)
|
||||
mfile.write(xml_layer("postgis-process", layer_type, itags, sqlz, zoom=zoom ))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue