# Why Is My 3D Tileset Not Aligning Correctly with Terrain in CesiumJS?

**URL:** <https://community.cesium.com/t/why-is-my-3d-tileset-not-aligning-correctly-with-terrain-in-cesiumjs/42186>\
**Category:** CesiumJS\
**Created:** [July 20, 2025, 2:10pm UTC](https://community.cesium.com/t/why-is-my-3d-tileset-not-aligning-correctly-with-terrain-in-cesiumjs/42186 "2025-07-20T14:10:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jjhembd](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jjhembd/32/10144_2.png) [@jjhembd](https://community.cesium.com/u/jjhembd)\
**Post date:** [July 21, 2025, 8:05pm UTC](https://community.cesium.com/t/why-is-my-3d-tileset-not-aligning-correctly-with-terrain-in-cesiumjs/42186/2 "2025-07-21T20:05:39Z")

</div>

Hi @stevediaz, welcome to the community!

In your input CityGML file, what are the elevations measured from? Are they heights above sea level, or heights above the WGS84 ellipsoid?

CesiumJS uses heights that are referenced to the WGS84 ellipsoid. See this [previous thread on terrain elevations](https://community.cesium.com/t/elevation-data-from-cesium-terrain-providers-is-wrong/1654/4) for more discussion.

If you can estimate the vertical error that you are seeing at a given longitude/latitude, we could get a quick check of whether the geoid vs ellipsoid error is enough to explain it.

---

_[View the full topic](https://community.cesium.com/t/why-is-my-3d-tileset-not-aligning-correctly-with-terrain-in-cesiumjs/42186)._
