Is it possible to crop a .vrt
mosaic to a vector-geometry? I have a .vrt
-file which is a mosaic of various sentinel2-scenes. For me it seems to be more efficient to already crop and mask (set everything outside the polygon to NA) before converting to a .tiff
-file.
I know that I can use something like gdalwarp -cutline...
to crop the .tiff
. But does this work with a .vrt
aswell?
gdalwarp -cutline mask.shp input.vrt output.tif
.