Splits a rasterLayer into tiles
split_raster(
file,
s = 2,
outputDir,
gdalinfoPath = NULL,
gdal_translatePath = NULL
)
Rasters are written to the output directory.
full path to a raster
division applied to each side of the raster (s=2 -> 4 tiles)
path and directory name for output
path to gdalinfo binary. Set to NULL
if
default search path is sufficient.
path to gdal_translate binary.
Set to NULL
if default search path is sufficient.
Pascal Title
GDAL must be installed for this function to work.
To determine if the default search paths are sufficient,
you can type in R Sys.which('gdalinfo')
and Sys.which('gdal_translate')
.
If a path is returned, then you can leave those arguments as NULL
.
GDAL. 2015. GDAL - Geospatial Data Abstraction Library: Version 1.11.3, Open Source Geospatial Foundation, https://gdal.org