-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Hi,
I'm using mago-3d-terrainer from the docker image. My terrains are well generated (which was not the case using https://github.com/tum-gis/cesium-terrain-builder-docker). But, i have an offset, and my terrains seem to be ~30 meters underneath the expected level.
SPECS
I use ol-cesium. I create the scene and add my data like this:
`
// Cesium terrain from ion.cesium
// scene.setTerrain(new Cesium.Terrain(Cesium.CesiumTerrainProvider.fromIonAssetId(1)));
// Built terrain from mago-3d-terrainer
scene.setTerrain(new Cesium.Terrain(Cesium.CesiumTerrainProvider.fromUrl('http://localhost:8099/OUTPUTS/NAMUR_MAGO_OPENTOPO')));
// Cesium world building
scene.primitives.add(await Cesium.Cesium3DTileset.fromIonAssetId(96188));`
INPUTS
I tried with 2 tif files:
- One from ODWB, city center of Namur (https://carto.ville.namur.be/data/MNT_CLIP/Namur_MNT_1.tif). But it's in EPSG:31370, so I need to reproject it to WGS84, which I did with FME
- The reprojected one from FME (NAMUR_ODWB_WGS84_FME.tif) (I uploaded it to Google drive: https://drive.google.com/drive/folders/1li8FEecFmMNwD85JcN_q5Ieu149bLtoZ?usp=sharing )
- A tif in WGS84, so that i dont have to do a reprojection and maybe break the data: NAMUR_OPENTOPO.tif (in Google Drive as well)
I then run the following commands:
docker run --rm -v "./:/workspace" gaia3d/mago-3d-terrainer -input /workspace/INPUTS/Namur_MNT_1.tif -output /workspace/OUTPUTS/NAMUR_MAGO_TERRAIN
OUTPUTS
The terrain is well generated, and waaaay faster than with ctb. But i can see an offset from the expected terrain altitude, which can be seen here with the Cesium World Building layer:
Which is NOT the case when I load the cesium terrain instead of my generated one:
Do you guys have any idea of what I'm doing wrong here ? Thanks in advance !