Particular for large spatial files, it is often impractical to process the entire layer as single file. Instead such a file could be split in smaller chunks and processed as such.
A common issue then is to reconstruct a spatial file of the original extent.
This function takes a list of filenames as input and mosaics them
together using a 'vrt' file format.
Arguments
- files
A
charactervector with filenames of spatial files.- ofname
A
characterwhere the output should be written (Default:NULL).- tempdir
A
characterwith a temporary folder that must exist (Default:NULL).- dt
A
characterwith the output datatype of the spatial file (Default:"INT2S").- ...
Any other parameters passed to
writeRaster.
Details
This function by default uses the 'gdalUtilities' R-package and tools
for most of the projections.
Examples
if (FALSE) { # \dontrun{
# Get list of files
ll <- list.files(path_to_folder)
# Mosaic
spl_mosaicTiffs(ll, "full_file.tif")
} # }