[OSM-dev] Area center calculation

Peter Körner osm-lists at mazdermind.de
Wed Oct 6 07:45:44 BST 2010

Am 05.10.2010 18:26, schrieb Csongor Nemes:
> I am contacting you regarding the calculation of centers of areas in OSM.

One possibility would be to construct the position of the POI icons not 
in Mapnik but in osm2pgsql during the import. I recently hacked together 
a small patch [1] that allows you to add a centroid column during the 
import. You could use the value from this column for the point placement 
in your map style as well as for you gui app.



More information about the dev mailing list