browser-image
    Preparing search index...

    ol/source/GeoTIFF that corrects its tiles with a pipeline. Needs normalize: true (the default). Call EnhancedGeoTIFF.updateDra on the map's moveend when the pipeline has autoStretch.

    Hierarchy

    • GeoTIFFSource
      • EnhancedGeoTIFF
    Index
    stats: TileStats = ...

    How many tiles were read and corrected, and the time it took.

    • 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.

      Parameters

      Returns void

    • 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.

      Returns Promise<RasterHistogram | null>

    • 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.

      Returns Promise<(string | null)[]>

    • 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.

      Returns unknown[][]

    • 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.

      Parameters

      Returns Promise<void>

    • 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.

      Parameters

      • locked: boolean

      Returns void

    • 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.

      Parameters

      • map: Map

      Returns Promise<void>