Select to view content in your preferred language

Unable to find driver for FileGDB in Linux using gdal

2850
1
07-05-2021 12:00 AM
AbhayDuvvuri2
Occasional Contributor

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.

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.

Python code:
 
from osgeo import ogr
driver = ogr.GetDriverByName("FileGDB")
print(driver.GetName())
1 Reply
AndresCastillo
MVP Alum

https://gdal.org/drivers/vector/filegdb.html#requirements

provides a link to the FileGDB API SDK.

 

The link takes you to Esri's appsforms download page to download the proper zip file for your OS.

 

You can also find the drivers in the Esro github repo:

https://github.com/Esri/file-geodatabase-api

Notice the required OS and versions

 

This GIS thread gives an example by ThomasG77 on how to compile and configure the driver in your system:

https://gis.stackexchange.com/questions/386112/exporting-many-tables-from-postgresql-to-gdb-using-og...

 

For windows, I ran the express install of this:
https://trac.osgeo.org/osgeo4w/

Once installed, I ran the installer again, but this time with the Advanced install option, and search then install the FileGDB plugins.

0 Kudos