0

I use the great approach to large rasters as described here

gdaltindex an_index.shp *.tif
ogr2ogr -f CSV list.csv an_index.shp -spat xmin ymin xmax ymax
gdalbuildvrt -input_file_list list.csv mosaic.vrt
r.external input=/path/to/mosaic.vrt output=mosaic

the resulting list.csv file contains correct paths, but the first line is "location,". It is skipped when vrt file is build, but can I get rid of this line while creating the list.csv?

Grass version is GRASS 7.8.7 (2022)

2
  • 1
    Which approach do you try precisely? I don't fully get the problem.
    – markusN
    May 25 at 22:41
  • Sorry, it was a wrong link. I updated the post. May 26 at 7:45

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.