+ use smooth=1.0 for water polygons

This commit is contained in:
Artem Pavlenko 2012-03-14 17:06:23 +00:00
parent 959a989f52
commit d855568400

View file

@ -138,7 +138,9 @@ qcdrain_lyr.datasource = mapnik.Shapefile(file='../data/qcdrainage')
qcdrain_style = mapnik.Style() qcdrain_style = mapnik.Style()
qcdrain_rule = mapnik.Rule() qcdrain_rule = mapnik.Rule()
qcdrain_rule.filter = mapnik.Expression('[HYC] = 8') qcdrain_rule.filter = mapnik.Expression('[HYC] = 8')
qcdrain_rule.symbols.append(mapnik.PolygonSymbolizer(mapnik.Color(153, 204, 255))) sym = mapnik.PolygonSymbolizer(mapnik.Color(153, 204, 255))
sym.smooth = 1.0 # very smooth
qcdrain_rule.symbols.append(sym)
qcdrain_style.rules.append(qcdrain_rule) qcdrain_style.rules.append(qcdrain_rule)
m.append_style('drainage', qcdrain_style) m.append_style('drainage', qcdrain_style)