Forrest logo
back to the gdalbuildvrt tool

gdalbuildvrt:tldr:4bfaa

gdalbuildvrt: Make a virtual mosaic from files whose name is specified in a text file.
$ gdalbuildvrt -input_file_list ${path-to-list-txt} ${path-to-output-vrt}
try on your machine

The command "gdalbuildvrt" is a command-line utility in the GDAL (Geospatial Data Abstraction Library) library. It is used to create a virtual raster dataset (VRT) file from a list of input files.

Here is the breakdown of the command:

  • "gdalbuildvrt" is the command itself.
  • "-input_file_list" specifies that the following argument will be a text file containing a list of input file paths.
  • "${path-to-list-txt}" represents the path to a text file that contains a list of input files. This list file should contain one file path per line.
  • "${path-to-output-vrt}" represents the desired path (including the filename) for the output VRT file that will be created.

In summary, the command takes a list of input file paths from a text file and generates a VRT file at the specified output path. The VRT file acts as a virtual mosaic of the input files, providing a convenient way to access and manipulate the files as one dataset without physically merging them.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gdalbuildvrt tool