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 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")


and I get this error:

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