Create a vrt connection from an input string and named arguments.

vrtcon(x, ...)

Arguments

x

character vector, of data source names (file paths, urls, database connection strings, or GDAL dsn)

...

named arguments like 'a_srs="OGC:CRS84"

Value

character string in the form "vrt://%s?arg1&arg2"

Details

As of writing (GDAL 3.7.0DEV 2022-12-12) the only available named arguments are 'a_srs', 'bands', 'a_ullr' but that doesn't stop this function.

Examples


vrtcon("myfile.nc", a_ullr = "0,90,360,-90", bands="1,2,1")
#> [1] "vrt://myfile.nc?a_ullr=0,90,360,-90&bands=1,2,1"