From 2f9d5587075a4b2e362ed4a5f734e033df26a099 Mon Sep 17 00:00:00 2001 From: gchoqueux Date: Fri, 1 Apr 2022 17:10:48 +0200 Subject: [PATCH] example(MNS) --- examples/config.json | 3 +- .../layers/JSONLayers/IGN_MNS_HIGHRES.json | 111 +++++++++++++ examples/view_3d_mns_map.html | 157 ++++++++++++++++++ 3 files changed, 270 insertions(+), 1 deletion(-) create mode 100644 examples/layers/JSONLayers/IGN_MNS_HIGHRES.json create mode 100644 examples/view_3d_mns_map.html diff --git a/examples/config.json b/examples/config.json index eac0c29336..8df3c224ea 100644 --- a/examples/config.json +++ b/examples/config.json @@ -5,7 +5,8 @@ "view_2d_map": "2D map", "view_multiglobe": "Multiple globes", "view_multi_25d": "Multiple 2.5D maps", - "view_immersive": "Immersive view" + "view_immersive": "Immersive view", + "view_3d_mns_map" : "Digital surface model" }, "Geoid": { diff --git a/examples/layers/JSONLayers/IGN_MNS_HIGHRES.json b/examples/layers/JSONLayers/IGN_MNS_HIGHRES.json new file mode 100644 index 0000000000..6abae877a5 --- /dev/null +++ b/examples/layers/JSONLayers/IGN_MNS_HIGHRES.json @@ -0,0 +1,111 @@ +{ + "id": "IGN_MNS_HIGHRES", + "noDataValue" : -99999, + "updateStrategy": { + "type": 1, + "options": { + "groups": [12, 17] + } + }, + "zoom" : { + "min": 12, + "max": 17 + }, + "source": { + "url": "https://wxs.ign.fr/altimetrie/geoportail/wmts", + "crs": "EPSG:4326", + "format": "image/x-bil;bits=32", + "attribution" : { + "name":"IGN", + "url":"http://www.ign.fr/" + }, + "name": "ELEVATION.ELEVATIONGRIDCOVERAGE.HIGHRES.MNS", + "tileMatrixSet": "WGS84G", + "TileMatrixSetLimits": { + "4": { + "minTileRow": 0, + "maxTileRow": 15, + "minTileCol": 0, + "maxTileCol": 31 + }, + "5": { + "minTileRow": 0, + "maxTileRow": 31, + "minTileCol": 16, + "maxTileCol": 47 + }, + "6": { + "minTileRow": 0, + "maxTileRow": 47, + "minTileCol": 32, + "maxTileCol": 95 + }, + "7": { + "minTileRow": 16, + "maxTileRow": 79, + "minTileCol": 80, + "maxTileCol": 175 + }, + "8": { + "minTileRow": 48, + "maxTileRow": 159, + "minTileCol": 160, + "maxTileCol": 335 + }, + "9": { + "minTileRow": 96, + "maxTileRow": 319, + "minTileCol": 320, + "maxTileCol": 671 + }, + "10": { + "minTileRow": 208, + "maxTileRow": 639, + "minTileCol": 656, + "maxTileCol": 1343 + }, + "11": { + "minTileRow": 432, + "maxTileRow": 1279, + "minTileCol": 1328, + "maxTileCol": 2687 + }, + "12": { + "minTileRow": 880, + "maxTileRow": 2543, + "minTileCol": 2656, + "maxTileCol": 5375 + }, + "13": { + "minTileRow": 1760, + "maxTileRow": 5071, + "minTileCol": 5312, + "maxTileCol": 10735 + }, + "14": { + "minTileRow": 3536, + "maxTileRow": 10143, + "minTileCol": 10624, + "maxTileCol": 21471 + }, + "15": { + "minTileRow": 7072, + "maxTileRow": 20287, + "minTileCol": 21248, + "maxTileCol": 42943 + }, + "16": { + "minTileRow": 14144, + "maxTileRow": 40575, + "minTileCol": 42512, + "maxTileCol": 85887 + }, + "17": { + "minTileRow": 28304, + "maxTileRow": 81151, + "minTileCol": 85040, + "maxTileCol": 171759 + } + } + } +} diff --git a/examples/view_3d_mns_map.html b/examples/view_3d_mns_map.html new file mode 100644 index 0000000000..3023d580d5 --- /dev/null +++ b/examples/view_3d_mns_map.html @@ -0,0 +1,157 @@ + + + Itowns - Globe digital surface model + + + + + + + + + + + +
+ + + + + + + + + + + + + +