Class BilFormat

A format class representing the Bil format.

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

Example usage:

// 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

Constructors

Properties

Methods

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: DataTexture;
    }>

Generated using TypeDoc