# Map spline to terrain heigth

**URL:** <https://community.cesium.com/t/map-spline-to-terrain-heigth/14626>\
**Category:** Cesium for Unreal\
**Created:** [July 29, 2021, 5:52pm UTC](https://community.cesium.com/t/map-spline-to-terrain-heigth/14626 "2021-07-29T17:52:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DerMarc](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/dermarc/32/3476_2.png) [@DerMarc](https://community.cesium.com/u/DerMarc)\
**Post date:** [July 29, 2021, 5:52pm UTC](https://community.cesium.com/t/map-spline-to-terrain-heigth/14626/1 "2021-07-29T17:52:04Z")

</div>

Hi,  
I started with the flight track demo. I have an gps track from driving and want to map it to terrain height (+ some distance) because the recorded height in the track oscillates a lot. Can anybody help me with a code sample.

Kind regards  
Marc

---

<div class="post-metadata">

**Author:** ![agallegos](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/agallegos/32/4464_2.png) [@agallegos](https://community.cesium.com/u/agallegos)\
**Post date:** [August 11, 2021, 2:36pm UTC](https://community.cesium.com/t/map-spline-to-terrain-heigth/14626/2 "2021-08-11T14:36:42Z")

</div>

Hi @DerMarc,

Your best bet currently may be to use a Line Trace as described in this comment - [Get altitude at lat long - #2 by xuelong](https://community.cesium.com/t/get-altitude-at-lat-long/12981/2)

For a spline, I’d recommend setting the X and Y of the spline point from the GPS track, and using a Line Trace to set the height during runtime.
