The parsed file directory
Whether the file is encoded in little or big endian
Whether or not decoded tiles shall be cached
The datasource to read from
Returns the image bounding box as an array of 4 values: min-x, min-y, max-x and max-y. When the image has no affine transformation, then an exception is thrown.
Optionaltilegrid: boolean = falseIf true return extent for a tilegrid without adjustment for ModelTransformation.
The bounding box
Calculates the number of bytes for each pixel across all samples. Only full bytes are supported, an exception is thrown when this is not the case.
the bytes per pixel
Returns the parsed GDAL metadata items.
If sample is passed to null, dataset-level metadata will be returned. Otherwise only metadata specific to the provided sample will be returned.
Optionalsample: number | null = nullThe sample index.
The GDAL metadata items
Returns the GDAL nodata value
Returns the associated parsed geo keys.
the parsed geo keys
Returns the height of the image.
the height of the image
Returns the image origin as a XYZ-vector. When the image has no affine transformation, then an exception is thrown.
The origin as a vector
Returns the image resolution as a XYZ-vector. When the image has no affine transformation, then an exception is thrown.
OptionalreferenceImage: GeoTIFFImage | null = nullA reference image to calculate the resolution from in cases when the current image does not have the required tags on its own.
The resolution as a vector
Returns the number of samples per pixel.
the number of samples per pixel
Returns an array of tiepoints.
the tiepoints
Returns the height of each tile.
the height of each tile
Returns the decoded strip or tile.
the strip or tile x-offset
the tile y-offset (0 for stripped images)
the sample to get for separated samples
the decoder or decoder pool
Optionalsignal: AbortSignalAn AbortSignal that may be signalled if the request is to be aborted
the decoded strip or tile
Returns the width of each tile.
the width of each tile
Returns the width of the image.
the width of the image
Returns whether or not the pixels of the image depict an area (or point).
Whether the pixels are a point
optional parameters
the decoded arrays as a promise
optional parameters
the decoded arrays as a promise
optional parameters
the decoded arrays as a promise
Optionaloptions: ReadRastersOptionsoptional parameters
the decoded arrays as a promise
optional parameters
the RGB array as a Promise
optional parameters
the RGB array as a Promise
optional parameters
the RGB array as a Promise
Optionaloptions: ReadRGBOptionsoptional parameters
the RGB array as a Promise
GeoTIFF sub-file image.