SDK JS
    Preparing search index...

    A decoded LERC raster: the header metadata plus a row-major Float32Array of the first band's values and an optional per-pixel validity mask. Returned by LercDecoder.decode.

    interface LercRaster {
        bands: number;
        dataType: number;
        depth: number;
        height: number;
        mask?: Uint8Array<ArrayBufferLike>;
        values: Float32Array;
        width: number;
        zMax: number;
        zMin: number;
    }
    Index

    Properties

    bands: number

    Number of bands in the source LERC blob (v1 decodes only the first).

    dataType: number

    Source data-type discriminant (0..5 integer, 6 float, 7 double); see LERC_DATA_TYPES.

    depth: number

    Values per pixel per band (LERC depth/nDim); 1 for a scalar DEM.

    height: number

    Raster height, in pixels.

    mask?: Uint8Array<ArrayBufferLike>

    Per-pixel validity mask, one byte per pixel (1 valid / 0 nodata), length width * height and row-major like LercRaster.values. Absent when every pixel is valid.

    values: Float32Array

    Row-major decoded values of the first band, length width * height. Integer, float, and double source rasters are all normalized to Float32Array (the natural target for elevation / coverage rendering).

    width: number

    Raster width, in pixels.

    zMax: number

    Maximum decoded value across the raster, in the source raster's own units (see LercRaster.zMin).

    zMin: number

    Minimum decoded value across the raster, in the source raster's own units (e.g. metres for an elevation DEM). LERC is bounded-error, so every value in LercRaster.values lies within [zMin, zMax].