Normalize based on GDAL stats metadata

This commit is contained in:
Tim Schaub
2021-12-01 09:27:35 -07:00
parent 38bff05e43
commit 04ac30009b
7 changed files with 148 additions and 6 deletions

View File

@@ -0,0 +1,22 @@
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/sentinel-b08.tif'}],
transition: 0,
});
new Map({
layers: [
new TileLayer({
source: source,
}),
],
target: 'map',
view: source.getView(),
});
render({
message: 'normalize data based on GDAL stats',
});