meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

software:libogr [2016/11/04 17:06] (current)
Line 1: Line 1:
 +''​osgeo.org''​ 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:​ http://​download.osgeo.org/​gdal/​presentations/​OpenSource_Weds_Andre_CUGOS.pdf
 +
 +In order to load the library one needs to import the module first:
 +
 +<​code>​
 +from osgeo import ogr as o
 +</​code>​
 +
 +the, open the shapefile:
 +
 +<​code>​
 +indrv = o.GetDriverByName( 'ESRI Shapefile'​ )
 +shapefile = o.Open( NameOfYourShapefile )
 +</​code>​