14

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.

3
  • 1
    From erouault.blogspot.fi/2014/01/ogr-openfilegdb-driver.html: I've encountered a few raster File Geodatabase datasets (apparently tiled), and a quick inspection of the tables makes me believe that a raster driver would be doable. Thus, probably doable but not done.
    – user30184
    Commented Jan 7, 2015 at 16:45
  • @user30184 are you aware of the evolution related to this question. Can gdal 2 read rasters in gdb ?
    – radouxju
    Commented Jun 23, 2015 at 19:06
  • I'm not aware of it, but would be interested to find out.
    – triphook
    Commented Jun 23, 2015 at 20:41

3 Answers 3

7

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…

2

The ability to read Raster layers from File Geodatabases has now been added to GDAL v3.7 (https://github.com/OSGeo/gdal/pull/7389)

Feature also now in QGIS - https://github.com/qgis/QGIS/pull/52214

1
  • And gdal 3.7 has now been released.
    – user2856
    Commented May 11, 2023 at 2:17
1

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:
https://north-road.com/blog/

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.