AnsweredAssumed Answered

how can I read a gdb file using python

Question asked by dario.romero1@bhp.com_bhp on Aug 12, 2020

I have browsed the web searching for way to install the FileGDB API in order to be able to use the driver to read gdb files from python. I have downloaded the file filegdb_api_vs2012_1_4.zip and within I found the FileGDBAPI.dll which I've placed on C:\ProgramData\Anaconda3\envs\gis2\Lib\site-packages\osgeo. When I do this test below, the driver doesn't come up. COuld you please provide some assistance on this? Thanks.

 

from gdal import ogr

driver = ogr.GetDriverByName("FileGDB")

print(driver.GetName())

and I get this error:

AttributeError: 'NoneType' object has no attribute 'GetName'

Outcomes