[OSM-dev] Centroid-Column - Patch for osm3pgsql
osm-lists at mazdermind.de
Thu Sep 23 14:09:31 BST 2010
A while ago we talked about adding support for a centroid column to
osm2pgsql . Attached you'll find a patch that adds this
functionality. I did not test it extensively, especially not with
invalid geometries, but for most cases it should work.
Unfortunately the server I tested on has only geos v3.1 and to use
interpolate on linestrings at least geos 3.2 ist required, so the
centroid point does not sit in the middle of the linesting but ..
somewhere else on the line.
Please, help me with testing and reviewing this patch.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the dev