software:libogr [PaleoEarthLabs wiki]

PaleoEarthLabs wiki

One bucket of limited wisdom

Site Tools

software:libogr is the Python API to the GDAL/OGR library. All one needs for creating, reading, and modifying shapefiles and the rest.

Here's a nice presentation from which I sourced most information:

In order to load the library one needs to import the module first:

from osgeo import ogr as o

the, open the shapefile:

indrv = o.GetDriverByName( 'ESRI Shapefile' )
shapefile = o.Open( NameOfYourShapefile )
software/libogr.txt · Last modified: 2016/11/04 17:06 (external edit)