arc_raster2SpatRaster: Convert an ESRI raster to a SpatRaster

View source: R/arc_raster2SpatRaster.R

arc_raster2SpatRasterR Documentation

Convert an ESRI raster to a SpatRaster

Description

Converts an ESRI raster to a terra::SpatRaster.

Usage

arc_raster2SpatRaster(raster_path)

Arguments

raster_path

character; A path to an ESRI raster.

Details

Rasters stored in ESRI Geodatabases have historically only been accessible using the 'arcgisbinding' package. No open source drivers existed to read file geodatabase rasters into R. However, since the release of GDAL v3.7, the OpenFileGDB driver now provides support for GDB rasters. GDAL access in R is currently best provided using 'sf'. Check 'sf::sf_extSoftVersion()' for the version of GDAL bundled with 'sf'. When 'sf' migrates to using this GDAL version and the OpenFileGDB raster driver is determined to be working, this function will migrate to using it instead of the proprietary 'arcgisbinding' approach used up to now.

Value

A 'terra::SpatRaster' object.


FluvialGeomorph/fluvgeo documentation built on April 12, 2024, 5:35 p.m.