gdalbuildvrt

creates virtual raster mosaics

TLDR

Create virtual mosaic
$ gdalbuildvrt [output.vrt] [input1.tif] [input2.tif]
Create from file list
$ gdalbuildvrt -input_file_list [files.txt] [output.vrt]
Create with resolution
$ gdalbuildvrt -resolution [average] [output.vrt] [*.tif]
Create with overwrite
$ gdalbuildvrt -overwrite [output.vrt] [*.tif]
Create with band selection
$ gdalbuildvrt -b [1] -b [2] -b [3] [output.vrt] [input.tif]

SYNOPSIS

gdalbuildvrt [options] output.vrt inputs...

DESCRIPTION

gdalbuildvrt creates a virtual raster dataset (VRT) that references multiple input files without copying data. VRT files are XML documents describing how to combine source rasters into a unified dataset, enabling on-the-fly mosaicking, stacking, and subsetting.The tool can mosaic adjacent tiles into seamless coverages or stack bands from separate files into multi-band datasets. Resolution handling controls how inputs with different pixel sizes are combined. VRTs support mixing projections with appropriate flags.Virtual datasets save disk space and processing time compared to creating physical mosaics. They're ideal for working with large tile collections, time series data, and multi-spectral imagery where logical combinations change frequently.

PARAMETERS

-input_file_list file

Read inputs from file.
-resolution method
Resolution calculation (highest, lowest, average, user).
-overwrite
Overwrite existing output.
-b band
Select specific band.
-separate
Put each input in separate band.
-allow_projection_difference
Allow different projections.
-te xmin ymin xmax ymax
Target extent.

INSTALL

sudo apt install gdal-bin
sudo apk add gdal-tools

SEE ALSO

gdaladdo(1), gdal_translate(1)

RESOURCES

Documentation · Source code