Skip to content

Terrain elevation offset #12

@denisdeville

Description

@denisdeville

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:

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:

Image

Which is NOT the case when I load the cesium terrain instead of my generated one:

Image

Do you guys have any idea of what I'm doing wrong here ? Thanks in advance !

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions