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 elevationSource = new WMSSource({
url: 'https://data.geopf.fr/wms-r',
projection: 'EPSG:2154',
crossOrigin: 'anonymous',
params: {
LAYERS: ['ELEVATION.ELEVATIONGRIDCOVERAGE.HIGHRES'],
FORMAT: 'image/x-bil;bits=32',
},
version: '1.3.0',
decoder: new BilFormat(),
});

const elevationLayer = new ElevationLayer(
'wms_elevation',
{
source: elevationSource,
},
);

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

Generated using TypeDoc