Decoder for BIL images.

At the moment, only single band BIL files are supported and it is tested only on IGN elevation WMS and WMTS layers.

 // Create an elevation source
const source = new WmsSource({
url: 'https://data.geopf.fr/wms-r',
projection: 'EPSG:2154',
layer: 'ELEVATION.ELEVATIONGRIDCOVERAGE.HIGHRES',
imageFormat: 'image/x-bil;bits=32',
format: new BilFormat(),
});

const elevationLayer = new ElevationLayer({ source });

map.addLayer(elevationLayer);

See it in action.

Hierarchy (view full)

Constructors

Properties

dataType: TextureDataType
flipY: boolean
isBilFormat: boolean = true
isImageFormat: boolean = true
type: string

Methods

  • Decode a Bil blob into a DataTexture containing the elevation data. At the moment only one band BIL is supported.

    Parameters

    • blob: Blob

      the data to decode

    • options: DecodeOptions = {}

      the decoding options

    Returns Promise<{
        max: number;
        min: number;
        texture: Texture | DataTexture;
    }>