Handle NaN nodata

This commit is contained in:
Tim Schaub
2022-05-11 19:02:38 -06:00
parent 6341ed3a64
commit 25b2007636
9 changed files with 72 additions and 6 deletions

View File

@@ -0,0 +1,21 @@
import GeoTIFF from '../../../../src/ol/source/GeoTIFF.js';
import Map from '../../../../src/ol/Map.js';
import TileLayer from '../../../../src/ol/layer/WebGLTile.js';
const source = new GeoTIFF({
sources: [{url: '/data/raster/elevation-f32.tif'}],
});
new Map({
layers: [
new TileLayer({
source: source,
}),
],
target: 'map',
view: source.getView(),
});
render({
message: 'normalize i16 data with nan nodata based on GDAL stats',
});