Merge multiple raster files into a single rasterSource:
Some functions like get_tiles return multiple separate files when it can be useful to have a single larger raster instead. This function is a thin wrapper over sf::gdal_utils, making it easy to collapse those multiple raster files into a single TIFF.
A character vector containing the file paths to the georeferenced rasters you want to use.
The file path to save the merged georeferenced raster to.
Optionally, a character vector of options to be passed directly to sf::gdal_utils. If the fallback is used and any options (other than "-overwrite") are specified, this will issue a warning.
output_rasterif it exists? If FALSE and the file exists, this function will fail with an error. The behavior if this argument is TRUE and "-overwrite" is passed to
optionsdirectly is not stable.
Logical: if TRUE, uses the much slower fallback method by default. This is used for testing purposes and is not recommended for use by end users.
Other data manipulation functions: