[gdal-dev] generate shapefile from program

joe at omc-international.com.au joe at omc-international.com.au
Sat Jul 19 23:09:45 EDT 2008


> Can someone point me to a python program that will generate
> a shapefile from scratch?
>
> Given an extent, projection, and set of lat/lng to place
> some markers or images, I would like a python (or c or c++)
> program to generate a shapefile for an overlay with
> mapserver/openlayers.  I think ogr may be able to do this,
> and saw many examples of how to change existing shapefiles,
> but not to generate one from scratch.

I found this page from Sean Gillies blog to be very helpful:

http://sgillies.net/blog/16/graticule-hacking-with-ogr/

but you will need to play around a bit to modify it to handle points.

Hope that helps,

Joe



More information about the gdal-dev mailing list