Converting Polygon Shapefile
Bart van den Eijnden (OSGIS)
bartvde at XS4ALL.NL
Tue Mar 28 09:08:02 PST 2006
You could load it into PostGIS, let PostGIS calculate the centroid and
export it again to shape using e.g. ogr2ogr.
You probably could also write an OGR Python script doing this.
Best regards,
Bart
Chip Taylor wrote:
>Is there an open source utility that will convert a polygon shapefile to a
>point shapefile, using the centroid of the polygon as the xy for the point?
>
>Chip Taylor
>Prepared Response, Inc
>
>
>
>
--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl
More information about the MapServer-users
mailing list