True when the tiles hold raw values (float RGBA, alpha last) for the
layer to stretch in its shader with EnhancedGeoTIFF.getRawStretch
(see the gpuStretch option). Known once the COG is read.
The raw stretch in use, one black and white value for each of R, G and B (a gray image's repeated); null until the statistics it is computed from are read, or when the image is not read raw.
Fixes the raw stretch to range (the raw values that become black and
white), as the rawStretch option does, or goes back to computing it
from statistics (null). For images read raw (see normalize), such as a
difference image shown from −x to +x so that 0 sits in the middle of its
color scale.
The raw stretch fixed by EnhancedGeoTIFF.setRawStretch or the rawStretch option; null when it follows statistics.
The distribution of the values shown: raw values for an image read raw
(see normalize), 0-255 for an 8-bit one, one histogram per picture
band (1 for a gray image, 3 for RGB), over the whole image read at a
coarse level, without fill values that stand apart (see
sampleRasterHistogram). For making color classes (colorClasses).
Read once, and again after the bands or the no-data setting change;
null before the COG is read or when nothing could be read.
Whether tiles are corrected as they load (false: the layer corrects the drawn map).
How the image is corrected: decided by its band count, the same for every tile. Null before the COG is read.
Bands that hold values (the alpha band OpenLayers adds for nodata not counted); 0 before the COG is read.
The bands R, G and B show now (0-based), or null when tiles are drawn as read.
The name of each value band (0-based, alpha not counted), null for a band
without one: the bandNames option, else the band's DESCRIPTION in
GDAL's metadata (GDAL_METADATA), as gdal_translate, QGIS or
rasterio write it. Empty before the COG is read.
The geotiff.js images (GeoTIFFImage) OpenLayers opened, for reading
their tags: one list per source, the full-resolution image first, then
the overviews from finest to coarsest. Empty before the COG is read.
Shows other bands as R, G and B (see the select option); null draws the
bands as read. Tiles are rebuilt from the raw cache, without reading the
COG again. DRA statistics are taken again over the last DRA area, for the
new bands; the promise resolves once they are.
The correction as set, before autoStretch is fixed from statistics.
Replaces the correction. Tiles on screen stay visible until their re-corrected versions are ready, then swap in.
The pipeline tiles are corrected with now, with any autoStretch already fixed.
What the current DRA statistics were taken from; null before the first updateDra.
Whether the DRA range is locked (see EnhancedGeoTIFF.setDraLocked).
Locks the DRA range: updateDra keeps the statistics it has (of the area
shown when they were taken) instead of following the view, so panning and
zooming no longer change the colors. DRA settings still apply to the kept
statistics. Unlocking lets the next updateDra take the view again.
Collects the statistics of the area map shows and fixes the pipeline's
autoStretch steps from them. Call it on the map's moveend. Does nothing
when the pipeline has no autoStretch, the visible area has not changed,
or the range is locked (EnhancedGeoTIFF.setDraLocked) and already
has statistics. Tiles are re-corrected only when the resulting range changes.
Sets the tile count and time in EnhancedGeoTIFF.stats back to zero.
ProtectedsetCalled by the GeoTIFF source once the COG's metadata is read; wraps its tile loader.
Which pixels are no data now (see the noData option).
Changes which pixels are no data (see the noData option). Tiles are
read from the COG again; DRA statistics are taken again over the last
DRA area, without the new no-data pixels, and the promise resolves once
they are.
The no-data value the file gives (GDAL_NODATA of its first image, or
the nodata of sources as given); null when it gives none or before
the COG is read.
ol/source/GeoTIFFthat corrects its tiles with a pipeline. Needsnormalize: true(the default). Call EnhancedGeoTIFF.updateDra on the map'smoveendwhen the pipeline hasautoStretch.