On Tue, Jul 29, 2014 at 1:46 PM, Michael Aschenbeck <[email protected]> wrote: > Hello, > > I'm having trouble creating a shapefile. My problems are isolated to the > following c++ block: > > const char *pszDriverName = "ESRI Shapefile"; > GDALDriver *poDriver; > GDALAllRegister(); > poDriver = GetGDALDriverManager()->GetDriverByName(pszDriverName ); > if( poDriver == NULL ) > { > printf( "%s driver not available.\n", pszDriverName ); > exit( 1 ); > } > > which enters the conditional since it cannot find the "ESRI Shapefile" > driver. > > The funny thing is that this driver loads no problem with my Python > bindings. Does anyone have any advice to help me out? > > Thanks, > Mike > > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev
Michael, What version of GDAL are you using? 2.0+ has a unified driver manager, but in previous versions the vector drivers (such as ESRI Shapefile) were OGR drivers. The older documentation can be found here: http://gdal.org/1.11/index.html OGR docs: http://gdal.org/1.11/ogr/index.html OGR tutorial: http://gdal.org/1.11/ogr/ogr_apitut.html The documentation at gdal.org represents the development version and if you are using the that version(2.0), AFAIK your code would work fine. -- Kyle _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
