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.
Answer
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…
No comments:
Post a Comment