# Problem of coordinates with 3D view

**URL:** <https://community.cesium.com/t/problem-of-coordinates-with-3d-view/5025>\
**Category:** CesiumJS\
**Created:** [January 13, 2017, 6:37pm UTC](https://community.cesium.com/t/problem-of-coordinates-with-3d-view/5025 "2017-01-13T18:37:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pyrando](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/pyrando/32/2091_2.png) [@pyrando](https://community.cesium.com/u/pyrando)\
**Post date:** [January 13, 2017, 6:37pm UTC](https://community.cesium.com/t/problem-of-coordinates-with-3d-view/5025/1 "2017-01-13T18:37:42Z")

</div>

Hello.  
Excuse me for my poor english.  
I use the Cesium JS script (great piece of code!) on my website and I encounter a problem with the 3D rendering of gpx files on a 3D terrain.

Here you can see :  
- the classical 2D view (OK) :  
[http://cazala.free.fr/without\_3D.PNG](http://cazala.free.fr/without_3D.PNG)

- the 3D view (having a problem with the gpx track location not around the lake like in classical view)  
&nbsp;&nbsp;&nbsp;&nbsp;I use : var terrainProvider = new Cesium.CesiumTerrainProvider({  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url : '[//assets.agi.com/stk-terrain/world](https://assets.agi.com/stk-terrain/world)'  
&nbsp;&nbsp;&nbsp;&nbsp;});  
[http://cazala.free.fr/with\_3D.PNG](http://cazala.free.fr/with_3D.PNG)

You can see the source code here :  
[http://www.pyrandonnees.fr/gpx/carte\_earth.php?gpx=650952](http://www.pyrandonnees.fr/gpx/carte_earth.php?gpx=650952)

Anybody can help me to solve this problem ?  
Thank you.

Best regards,

Jérôme

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [January 13, 2017, 8:08pm UTC](https://community.cesium.com/t/problem-of-coordinates-with-3d-view/5025/2 "2017-01-13T20:08:45Z")

</div>

Hello Jérôme,

We don’t currently have support for polylines on terrain, but it is one of the most frequently requested features and we would like to add support.

In the meantime, you can try using [sampleTerrain](http://cesiumjs.org/Cesium/Build/Documentation/sampleTerrain.html) to query the terrain for it’s height at each position.

You can see this demo for an example for how to use the function: [http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Terrain.html&label=Showcases](http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Terrain.html&label=Showcases)

Best,

Hannah

---

<div class="post-metadata">

**Author:** ![pyrando](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/pyrando/32/2091_2.png) [@pyrando](https://community.cesium.com/u/pyrando)\
**Post date:** [January 15, 2017, 8:38am UTC](https://community.cesium.com/t/problem-of-coordinates-with-3d-view/5025/3 "2017-01-15T08:38:42Z")

</div>

Hello.  
First, thank you very much for you help.  
So i modify my source code in order to :  
- load positions (lon, lat) from the kml  
- make them converted by the sample terrain to have heights  
- draw them on the terrain like in the example

Unfortunatelly that does not work properly. I can't see the drawed points on the terrain ☹  
[http://www.pyrandonnees.fr/gpx/carte\_earth\_test.php?gpx=705916](http://www.pyrandonnees.fr/gpx/carte_earth_test.php?gpx=705916)

Probably something missing in my code...  
Any idea ?

Best regards.

Jérôme

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [January 16, 2017, 4:03pm UTC](https://community.cesium.com/t/problem-of-coordinates-with-3d-view/5025/4 "2017-01-16T16:03:08Z")

</div>

I couldn’t fine where the data is on the globe. What are the coordinates?

-Hannah

---

<div class="post-metadata">

**Author:** ![pyrando](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/pyrando/32/2091_2.png) [@pyrando](https://community.cesium.com/u/pyrando)\
**Post date:** [January 16, 2017, 6:44pm UTC](https://community.cesium.com/t/problem-of-coordinates-with-3d-view/5025/5 "2017-01-16T18:44:38Z")

</div>

Hello Hanna,

Points are located in South West of France.  
You can see them here on the 2D version of the map with the good points locations.

[http://www.pyrandonnees.fr/gpx/carte\_earth.php?gpx=705916](http://www.pyrandonnees.fr/gpx/carte_earth.php?gpx=705916)

Best regards.
