UNPKG

@giro3d/giro3d

Version:

A JS/WebGL framework for 3D geospatial data visualization

57 lines 1.75 kB
import { DataTexture } from 'three'; import type { DecodeOptions } from './ImageFormat'; import ImageFormat from './ImageFormat'; /** * Decoder for [BIL](https://desktop.arcgis.com/en/arcmap/10.3/manage-data/raster-and-images/bil-bip-and-bsq-raster-files.htm) images. * * At the moment, only single band BIL files are supported and it is tested only on IGN elevation * WMS and WMTS layers. * * ```js * // 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](/examples/ign_ortho_elevation.html). * */ declare class BilFormat extends ImageFormat { readonly isBilFormat: boolean; readonly type: "BilFormat"; private _enableWorkers; /** * @param options - Decoder options. */ constructor(options?: { /** * Enables processing raster data in web workers. * @defaultValue true */ enableWorkers?: boolean; }); /** * Decode a Bil blob into a * [DataTexture](https://threejs.org/docs/?q=texture#api/en/textures/DataTexture) containing * the elevation data. At the moment only one band BIL is supported. * * @param blob - the data to decode * @param options - the decoding options */ decode(blob: Blob, options: DecodeOptions): Promise<{ texture: DataTexture; min: number; max: number; }>; } export default BilFormat; //# sourceMappingURL=BilFormat.d.ts.map