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")
and I get this error:
AttributeError: 'NoneType' object has no attribute 'GetName'
When you run this:
from osgeo import ogr driver_name_list = [ogr.GetDriver(id).GetName() for id in range(ogr.GetDriverCount())] for driver_name in sorted(driver_name_list): ds = ogr.GetDriverByName(driver_name) if ds is not None: print(driver_name)
What does it output?
FileGDB isnt part of the drivers list.
I am using
Hi, I am trying to install FileGDB API to read/write file geodatabases using gdal. I have successfully installed FileGDB in Linux and am able to run the samples. (eg: LD_LIBRARY_PATH is set correctly)
I then installed miniconda and installed gdal using
conda install -c conda-forge gdal
I am unable to find driver for "FileGDB" but other drivers like "OpenFileGDB" seem to work fine. Please suggest what I might be doing wrong.