← 返回命令列表

Linux command

gdalbuildvrt 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

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]

说明

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.

参数

-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.

FAQ

What is the gdalbuildvrt command used for?

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.

How do I run a basic gdalbuildvrt example?

Run `gdalbuildvrt [output.vrt] [input1.tif] [input2.tif]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -input_file_list _file_ do in gdalbuildvrt?

Read inputs from file.