[gdal-dev] "ESRI Shapefile" Driver Not Found

Michael Aschenbeck m.g.aschenbeck at gmail.com
Tue Jul 29 13:36:28 PDT 2014


Thank you, I was following the tutorial for the newest version while I was
on a 1.1x version.  The links you supplied helped!



On Tue, Jul 29, 2014 at 2:21 PM, Kyle Shannon <kyle at pobox.com> wrote:

> On Tue, Jul 29, 2014 at 1:46 PM, Michael Aschenbeck
> <m.g.aschenbeck at gmail.com> 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
> > gdal-dev at lists.osgeo.org
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140729/8bc8bb58/attachment.html>


More information about the gdal-dev mailing list