SDK JS
    Preparing search index...

    Interface RiptRaster

    A decoded RIPT raster: RiptInfo metadata plus the pixel values, as returned by RiptDecoder.decode.

    interface RiptRaster {
        bands: number;
        dtype: string;
        height: number;
        lossy: boolean;
        values:
            | ArrayBufferView<ArrayBufferLike>
            | ArrayBufferView<ArrayBufferLike>[];
        width: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    bands: number

    Number of channels (bands) per pixel; 1 for single-band rasters.

    dtype: string

    Element data type of the decoded pixels; one of RiptDataType. Typed as | string to forward-tolerate any type a newer codec build reports.

    height: number

    Raster height in pixels (rows).

    lossy: boolean

    true if the tile was encoded with lossy compression; false if lossless.

    values: ArrayBufferView<ArrayBufferLike> | ArrayBufferView<ArrayBufferLike>[]

    Decoded pixels in row-major order. Single-band (bands === 1): one typed array whose element type matches RiptInfo.dtype (Float32Array, Int16Array, …) of length width * height. Multiband (bands > 1): one such typed array per band (length bands), each width * height elements.

    width: number

    Raster width in pixels (columns).