There are tutorial-ish examples of programming with ogr.py at
http://zcologia.com/news/16
http://www.perrygeo.net/wordpress/?p=4
cheers,
Sean
On Mar 28, 2006, at 10:08 AM, Bart van den Eijnden (OSGIS) wrote:
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
---
Sean Gillies
http://zcologia.com