Usage
gdalbuildvrt(gdalfile, output.vrt, tileindex, resolution, te, tr, tap, separate,
b, sd, allow_projection_difference, q, addalpha, hidenodata, srcnodata,
vrtnodata, a_srs, input_file_list, overwrite, additional_commands,
verbose = FALSE, ...)
Arguments
gdalfile
Character. Input files (as a character
vector) or a wildcard search term (e.g. "*.tif")
output.vrt
Character. Output VRT file.
tileindex
Logical. Use the specified value as the
tile index field, instead of the default value with is
'location'.
resolution
Character.
("highest"|"lowest"|"average"|"user") In case the
resolution of all input files is not the same, the
-resolution flag enables the user to control the way the
output resolution is computed. 'average' is the default.
'highest' will pick
te
Numeric. c(xmin,ymin,xmax,ymax) (starting with
GDAL 1.7.0) set georeferenced extents of VRT file. The
values must be expressed in georeferenced units. If not
specified, the extent of the VRT is the minimum bounding
box of the set of source rasters
tr
Numeric. c(xres,yres) (starting with GDAL
1.7.0) set target resolution. The values must be
expressed in georeferenced units. Both must be positive
values. Specifying those values is of course incompatible
with highest|lowest|average values for -re
tap
Logical. (GDAL >= 1.8.0) (target aligned
pixels) align the coordinates of the extent of the output
file to the values of the -tr, such that the aligned
extent includes the minimum extent.
separate
Logical. (starting with GDAL 1.7.0) Place
each input file into a separate stacked band. In that
case, only the first band of each dataset will be placed
into a new band. Contrary to the default mode, it is not
required that all bands have the same
b
Numeric. (GDAL >= 1.10.0) Select an input band
to be processed. Bands are numbered from 1. If input
bands not set all bands will be added to vrt
sd
Numeric. (GDAL >= 1.10.0) If the input dataset
contains several subdatasets use a subdataset with the
specified number (starting from 1). This is an
alternative of giving the full subdataset name as an
input.
allow_projection_difference
Logical. (starting
with GDAL 1.7.0) When this option is specified, the
utility will accept to make a VRT even if the input
datasets have not the same projection. Note: this does
not mean that they will be reprojected. Their projection
will just
q
Logical. (starting with GDAL 1.7.0) To disable
the progress bar on the console.
addalpha
Logical. (starting with GDAL 1.7.0) Adds
an alpha mask band to the VRT when the source raster have
none. Mainly useful for RGB sources (or grey-level
sources). The alpha band is filled on-the-fly with the
value 0 in areas without any source raster
hidenodata
Logical. (starting with GDAL 1.7.0)
Even if any band contains nodata value, giving this
option makes the VRT band not report the NoData. Useful
when you want to control the background color of the
dataset. By using along with the -addalpha option,
srcnodata
Character. (starting with GDAL 1.7.0)
Set nodata values for input bands (different values can
be supplied for each band). If more than one value is
supplied all values should be quoted to keep them
together as a single operating system argument. I
vrtnodata
Character. (starting with GDAL 1.7.0)
Set nodata values at the VRT band level (different values
can be supplied for each band). If more than one value is
supplied all values should be quoted to keep them
together as a single operating system argum
a_srs
Character. (starting with GDAL 1.10)
Override the projection for the output file. The srs_def
may be any of the usual GDAL/OGR forms, complete WKT,
PROJ.4, EPSG:n or a file containing the WKT.
input_file_list
Character. To specify a text file
with an input filename on each line.
overwrite
Logical. Overwrite the VRT if it already
exists.
additional_commands
Character. Additional commands
to pass directly to ogrinfo.
verbose
Logical. Verbose execution?
...
Other parameters to pass to gdal_translate.