0

I would like to open a .gdb file which I received as .tar.gdb. The unzipped folder contains the following elements in the figure. How can I open this in R? It is a raster digital elevation model. I need the elevation values of the raster cells but do not have ArcGIS or related programs on my computer 1.

1
  • 1
    There isn't any convention for passing file geodatabase as .tar.gdb, but it seems to have extracted correctly (FGDB is not a file format, but a directory of file contents, as opposed to RDBMS tables). That's the good news. The bad news is that rasters are not directly supported by either the Esri or Open file geodatabase drivers. There may be some reverse-engineered extraction tools but you'd probably be better off with alternate input.
    – Vince
    May 1 '20 at 12:06
2

gdb files are ESRI GeoDatabase files, a proprietary format not suited for exchange with other applications.

There seems to be no GDAL raster driver for ESRI GeoDatabase files, and since R uses GDAL to load raster data, this won't work. You'll need to get the data in a GDAL supported format - for rasters a GeoTIFF is usually the solution.

There is a GDAL vector driver for ESRI GeoDatabase files, but that will only read in things like points, lines, and polygons, and I don't think it works on the latest version of the ESRI GeoDatabase file format.

1
  • 1
    File geodatabase hasn't changed format since the 9.3-10.0 reorganization to XML metadata. The read/write Esri FGDB API does not support pre-10 layout, but the read-only open API does. Neither supports rasters.
    – Vince
    May 1 '20 at 12:22

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.