How can I import a raster file from a gdb into R?
Name of raster file: Cont_maturite in gdb : CAROPER_04151.gdb
In wd: c:\test\caroper
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
R spatial packages all depend on GDAL for file read/write, and GDAL uses the OpenFileGDB driver, which can only read vector data sources at this time - see https://www.gdal.org/drv_openfilegdb.html. The driver provides no write access at all.
If you have a recent version of ArcMap (>=10.3.1) or ArcGis Pro (1.1) installed, you can use the R package
arcgisbinding to connect to ESRI proprietary data sources. This allows read/write access to anything in a File Geodatabase, plus SDE connections, as well as conversion from ESRI's own take on R spatial objects to and from
raster style objects. See https://github.com/R-ArcGIS/r-bridge.