Sounds like a bug in the osm plugin. Mapnik's PointSymbolizer will label the mid-point of the line if the geometry is not a proper polygon, which is what it appears is happening.
Could you double check that osm data is valid, and if so, then post a ticket to trac.mapnik.org? Also, confirm which mapnik version you are using? Dane On Nov 20, 2010, at 12:51 AM, yvecai wrote: > If I understood what I read on the mailing-list archive, a PointSymbloizer > should be render at the polygon centroid, am I wrong ? > However, with an osm datasource like below, the PointSymbolizer is rendered > on the middle of the right edge. > If I close the polygon, it's on the right upper edge. > <?xml version="1.0" encoding="UTF-8"?> > <osm version="0.6" generator="legend2osm"> > <bounds minlat="-1" minlon="-1" maxlat="1" maxlon="1"/> > <node id="-10" lat="-18.75" lon="-37.5" visible="true"> > </node> > <node id="-11" lat="-18.75" lon="37.5" visible="true"> > </node> > <node id="-12" lat="18.75" lon="37.5" visible="true"> > </node> > <node id="-13" lat="18.75" lon="-37.5" visible="true"> > </node> > <way id="-14" visible="true"> > <nd ref="-10" /> > <nd ref="-11" /> > <nd ref="-12" /> > <nd ref="-13" /> > <tag k="amenity" v="place_of_worship"/> > <tag k="way_area" v="1"/> > </way> > </osm> > Yves > _______________________________________________ > Mapnik-users mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/mapnik-users
_______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

