The datasource to read from.
Whether the image uses little endian.
Whether the image uses bigTIFF conventions.
The numeric byte-offset from the start of the image to the first IFD.
Optionaloptions: GeoTIFFOptions = {}further options.
Closes the underlying file buffer N.B. After the GeoTIFF has been completely processed it needs to be closed but only if it has been constructed from a file.
Get the values of the COG ghost area as a parsed map. See https://gdal.org/drivers/raster/cog.html#header-ghost-area for reference
the parsed ghost area or null, if no such area was found
Get the n-th internal subfile of an image. By default, the first is returned.
Optionalindex: number = 0the index of the image to return.
the image at the given index
Returns the count of the internal subfiles.
the number of internal subfile images
Optionalsize: number(experimental) Reads raster data from the best fitting image. This function uses
the image with the lowest resolution that is still a higher resolution than the
requested resolution.
When specified, the bbox option is translated to the window option and the
resX and resY to width and height respectively.
Then, the [readRasters]GeoTIFFImage#readRasters method of the selected
image is called and the result returned.
optional parameters
the decoded array(s), with height and width, as a promise
StaticfromParse a (Geo)TIFF file from the given source.
The source of data to parse from.
Optionaloptions: GeoTIFFOptionsAdditional options.
Optionalsignal: AbortSignalAn AbortSignal that may be signalled if the request is to be aborted
The abstraction for a whole GeoTIFF file.