Handle masks in GeoTIFFs

This commit is contained in:
Tim Schaub
2022-08-26 22:34:31 +02:00
parent c7988de1d8
commit c860a362e8
4 changed files with 204 additions and 102 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({
convertToRGB: true,
sources: [{url: '/data/raster/masked.tif'}],
});
new Map({
layers: [
new TileLayer({
source: source,
}),
],
target: 'map',
view: source.getView(),
});
render({
message: 'works with geotiffs that include a mask',
});