I want to make a mosaic out of several raster files that are next to each other, all including 4 bands. Due to saving space on the server I need to build a vrt and want to write the code in R, so I can process this action more often without too much work. Unfortunately I cannot get rid of the Warning message:
Warning message:
running command '"C:\Program Files\QGIS 2.16\bin\gdalbuildvrt.exe"
-overwrite
"S:/Raster/Ortho_Mosaic.vrt" "S:/Raster/Input/*.tiff"'
had status 1
I use R and gdalbuildvrt should use gdal from QGIS 2.16.
My packages are rgdal, raster and gdalUtils. My code looks like this:
folder <- 'S:/Raster/'
gdalbuildvrt(gdalfile = paste(folder, '/Input/*.tiff', sep = ""),
output.vrt= paste(folder, '/Ortho_Mosaic.vrt', sep = ""),
intern = TRUE, overwrite = TRUE))
I tried a lot of different ways for my input files: use an extent, use single files, all .tif files or changed tif to tiff ... The output file is not produced even though it is only a warning and not an error message. All files are in the same coordinate system; EPSG 31467
Does anyone have an idea what the problem could be? Thanks for your help!