There is probably two level of improvement here, one to be able to
render simple polygon, and another one for multi-polygons.
If the osm plugin should remains a quick hack, changing:
http://trac.mapnik.org/browser/trunk/plugins/input/osm/osm.h#L30 by :
http://dev-yves.dyndns.org/dev/osm.h
would do the job (you'll love it). It's obtained from default.style
and the slippy map osm.xml. It works for my PointSymbolizer case.
A slightly less ugly would be to just look for the following tags from
default.style, with any value:
"addr:flats"
"aeroway"
"amenity"
"area"
"building"
"historic"
"landuse"
"leisure"
"man_made"
"military"
"natural"
"power"
"sport"
"tourism"
"waterway"
(sorry, my cpp knowledge prevent me to give you such a masterpiece than
the other).
The last quick hack I see is just to look for [area]='yes', and document
it on the wiki. That way, anybody would be able to properly render areas
with the osm plugin. Am I right?
Yves
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users