Skip to main content
Bumped by Community user
added 248 characters in body
Source Link

I use the great approach to large rasters as described here https://grasswiki.osgeo.org/wiki/Large_raster_data_processingdescribed 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)

I use the great approach to large rasters as described here https://grasswiki.osgeo.org/wiki/Large_raster_data_processing

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)

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)

Source Link

How to remove the first header line when creating a csv with ogr2ogr?

I use the great approach to large rasters as described here https://grasswiki.osgeo.org/wiki/Large_raster_data_processing

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)