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.

  • 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 Jan 7 '15 at 16:45
  • @user30184 are you aware of the evolution related to this question. Can gdal 2 read rasters in gdb ? – radouxju Jun 23 '15 at 19:06
  • I'm not aware of it, but would be interested to find out. – triphook Jun 23 '15 at 20:41

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…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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