Function: parseVRT()
parseVRT(
xml,vrtUrl):VRTItem[]
Defined in: packages/deck.gl-geotiff/src/mosaic-layer/vrt.ts:44
Read the source files of a GDAL VRT mosaic, such as gdalbuildvrt writes,
as MosaicLayer items, in the order the VRT lists them.
A file listed under several bands is one item. Only each file's place in
the VRT (its DstRect) is read, since each file is drawn with its own
georeferencing; SrcRect, scaling and other per-source options are ignored.
Uses DOMParser, so it needs a browser or a DOM implementation.
Parameters
xml
string
The VRT's XML body.
vrtUrl
string | URL
The VRT's URL. Source paths marked relativeToVRT="1", such
as files next to the VRT, resolve against it.
Returns
VRTItem[]
Throws
If the VRT is a warped VRT, has a derived band, or has a source
path that is neither a URL, a /vsicurl/ path, nor relative to the VRT.