I have a machine setup with Windows 10, ArcGIS 10.2.1 and Python 2.7 from ArcGIS. I installed GDAL according to cartometric. The gdal-202-1500-core.msi and then gdal-202-1500-filegdb.msi. With Python, when I load from osgeo import ogr, I have only 1 driver available, the NetCDF. According to www.gdal.org, i should see at least ESRI Shapefile, GeoJSON and Mapinfo File since they are compile by default and FileGDB since I added it.

What I am doing wrong?

  • I suggest using conda to install GDAL or just a wheel lfd.uci.edu/~gohlke/pythonlibs - a whole lot easier with Windows Feb 6 '19 at 22:55
  • According to the post GDAL Python bindings not picking up OGR PostgreSQL driver, I placed the import os with the os.environ... before the import ogr to make sure that the environment variables are well read and I can see all the drives now.
    – orange
    Feb 7 '19 at 18:15
  • I also found out that ArcGIS has as the GDAL plugins and data folders under ...\esri\Data Interoperability (x86)\plugins. Could it be possible to use directly those librairies making the additionnal GDAL installation unnecessary?
    – orange
    Feb 7 '19 at 18:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.