Search code examples
clinuxgisgdalogr

GDAL 1.11 no vector support?


I was trying to look at the OGR api in GDAL, and was following the tutorial here: http://www.gdal.org/ogr_apitut.html. I kept getting an undefined reference to pretty much everything. I've installed from source the latest version (1.11) on my linux distro from here: http://trac.osgeo.org/gdal/wiki/DownloadSource. Looking through the header file, specifically in gcore/gdal.h, I see for example that GDALOpenEx is not there, nor is it in the version before that. It is, however, in the subversion repository. So, what gives?


Solution

  • There is no GDALOpenEx function for GDAL 1.11. You are looking at documentation for GDAL 2.x.

    The documentation for 1.11 is found at http://gdal.org/1.11/

    Or, you can make the documentation for the version you are using locally, e.g.:

    make docs
    sudo make install-docs
    

    Then view them locally from your web browser, e.g.:

    chromium /usr/local/doc/ogr/ogr_apitut.html