0

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?

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
orange
  • 1
  • I suggest using conda to install GDAL or just a wheel https://www.lfd.uci.edu/~gohlke/pythonlibs/ - a whole lot easier with Windows – Alex Tereshenkov Feb 06 '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 07 '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 07 '19 at 18:40

0 Answers0