# Cartesian3.fromDegreesArray with height alternative?

**URL:** <https://community.cesium.com/t/cartesian3-fromdegreesarray-with-height-alternative/2065>\
**Category:** CesiumJS\
**Created:** [February 25, 2015, 6:59pm UTC](https://community.cesium.com/t/cartesian3-fromdegreesarray-with-height-alternative/2065 "2015-02-25T18:59:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sai\_Asuka](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@Sai\_Asuka](https://community.cesium.com/u/Sai_Asuka)\
**Post date:** [February 25, 2015, 6:59pm UTC](https://community.cesium.com/t/cartesian3-fromdegreesarray-with-height-alternative/2065/1 "2015-02-25T18:59:43Z")

</div>

I want to create a polyline where each point has a different “height”. What is the appropriate way to do this? I have an array of array of positions: [latitude,longitude,height,latitude,longitude,height,[latitude,longitude,height]

However, when I pass it into positions:

positions : Cesium.Cartesian3.fromDegreesArray(points)

It does not work because from DegreesArray dees not appear to support height. How do I get around this?

---

<div class="post-metadata">

**Author:** ![Scott\_Hunter](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/scott_hunter/32/2006_2.png) [@Scott\_Hunter](https://community.cesium.com/u/Scott_Hunter)\
**Post date:** [February 25, 2015, 7:09pm UTC](https://community.cesium.com/t/cartesian3-fromdegreesarray-with-height-alternative/2065/2 "2015-02-25T19:09:44Z")

</div>

I think you want Cartesian3.fromDegreesArrayHeights:

[http://cesiumjs.org/Cesium/Build/Documentation/Cartesian3.html#fromDegreesArrayHeights](http://cesiumjs.org/Cesium/Build/Documentation/Cartesian3.html#fromDegreesArrayHeights)
