gdalbuildvrt | R Documentation |
This function provides an interface mirroring that of the GDAL
command-line app gdalbuildvrt
. For a description of the
utility and the arguments that it takes, see the documentation at
https://gdal.org/programs/gdalbuildvrt.html.
gdalbuildvrt(
gdalfile,
output.vrt,
...,
tileindex,
resolution,
te,
tr,
tap,
separate,
b,
sd,
allow_projection_difference,
optim,
q,
addalpha,
hidenodata,
srcnodata,
vrtnodata,
ignore_srcmaskband,
a_srs,
r,
oo,
input_file_list,
strict,
non_strict,
overwrite,
config_options = character(0),
dryrun = FALSE
)
gdalfile |
Character vector supplying file paths to one or more input datasets. |
output.vrt |
Character. Path to output VRT file. Typically,
output file will have suffix |
... |
Here, a placeholder argument that forces users to supply exact names of all subsequent formal arguments. |
tileindex, resolution, te, tr, tap, separate, b, sd |
See the GDAL project's gdalbuildvrt documentation for details. |
allow_projection_difference, q, optim, addalpha, hidenodata |
See the GDAL project's gdalbuildvrt documentation for details. |
srcnodata, vrtnodata, ignore_srcmaskband, a_srs, r, oo |
See the GDAL project's gdalbuildvrt documentation for details. |
input_file_list, strict, non_strict, overwrite |
See the GDAL project's gdalbuildvrt documentation for details. |
config_options |
A named character vector with GDAL config
options, of the form |
dryrun |
Logical (default |
Silently returns path to output.vrt
.
Joshua O'Brien
## Prepare file paths
td <- tempdir()
out_vrt <- file.path(td, "out.vrt")
layer1 <-
system.file("extdata/tahoe_lidar_bareearth.tif",
package = "gdalUtilities")
layer2 <-
system.file("extdata/tahoe_lidar_highesthit.tif",
package = "gdalUtilities")
## Build VRT and check that it works
gdalbuildvrt(gdalfile = c(layer1, layer2), output.vrt = out_vrt)
gdalinfo(out_vrt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.