gdalUtilities::ogr2ogrGDALcrop.RdCrop on disk using gdalUtilities::ogr2ogr
GDALcrop(filename, filename2, destinationPath = NULL, studyArea = NULL)character. File name (only) to original spatial file.
character. File name (only) to use when saving cropped spatial file.
folder path to filename and where filename2 will be saved.
a SpatVector, or NULL (default), from which the extent to crop
filename to will be extracted. If NULL, no cropping/saving happens and filename is
simply loaded.
a cropped SpatVector that corresponds to filename2.