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 sourceconst 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); Copy
// Create an elevation sourceconst 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.
Optional
Decoder options.
Enables processing raster data in web workers.
true Copy
true
Readonly
Decode a Bil blob into a DataTexture containing the elevation data. At the moment only one band BIL is supported.
the data to decode
the decoding options
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.
See it in action.