Accessing file geodatabase (.gdb) rasters with GDAL?

Accessing file geodatabase (.gdb) rasters with GDAL?

I'm working on a tool that converts raster layers to arrays for processing with NumPy, and ideally I would like to be able to work with rasters that come packaged in a .gdb without exporting them all (especially if this requires engaging ArcGIS or ArcPy).

Is this possible with the OpenFileGDB driver?

From what I can tell this driver seems to treat raster layers the same as vector layers, which gives you access to some data about the layer but doesn't give you the ReadAsArray functionality.

Reading and writing file geodatabase rasters is not supported by the File Geodatabase API as of July 2015. According to this 2010 Esri blog File Geodatabase API details:

Rasters (Raster Dataset, Raster Catalog, Mosaic Datasets and Raster Attributes) are not supported with the initial release of the File Geodatabase API.

Additionally, according to an Esri Staff member on a Geonet discussion (June 2015):

Currently we do not have any plans on supported access to raster data via the File Geodatabase API. If you feel this is needed, please add it to the Esri Ideas site and it will be considered for a…

Raster data stored in File Geodatabases is currently not supported by GDAL/QGIS.
There is work being done by Nyall Dawson and North Road along with members of the GDAL development community to hopefully bring this feature to light in the upcoming time.

Watch this page for news regarding the development of the raster driver:

Watch the video: How to Open ArcGIS File gdb in QGIS 2021.