interface Options {
    band?: number;
    clamp?: [number, number];
    ellipsoid?: Ellipsoid;
    getStats?: boolean;
    maxZoom?: number;
    noData?: number;
    tileSize?: number;
}

Properties

band?: number

Select the band number to read; 0-based index

0
clamp?: [number, number]

[low, high] bounds to clamp elevation values to

[0, Infinity]
ellipsoid?: Ellipsoid

Ellipsoid for Cesium operations

Cesium.Ellipsoid.WGS84
getStats?: boolean

Use geotiff-stats to read GDAL metadata or calculate stats to auto-set clamp

If GDAL metadata is not found for the given COG, the stats calculation can have a significant impact on performance. Use at your own discretion.

false
maxZoom?: number

Force a maxium zoom; Normally set automatically based on projection & resolution

noData?: number

Elevation value in TIFF to be reinterpreted as 0 in MARTINI

image.getGDALNoData() ?? 0
tileSize?: number

Sets the resampled tile grid size. Must match the parent MartiniTerrainProvider.tileSize

257