SDK JS
    Preparing search index...
    • Terrarium-encode an elevation grid to RGBA bytes (1/256 m granularity).

      Parameters

      • values: Float32Array

        Row-major elevations in metres, length w*h.

      • w: number

        Grid width in pixels.

      • h: number

        Grid height in pixels.

      • opts: EncodeOptions = {}

        Optional nodata mask + fill; see EncodeOptions.

      Returns Uint8ClampedArray

      RGBA Uint8ClampedArray of length w*h*4 (alpha is 255).