cross section profile

I want to draw cross section profile for terrain…

Is it possible to draw profile in cesium…

This is how i need to plot… I have gone through many api’s but i didn’t find any possiblities…

Need some suggestion for implementation of it.

Take a look at sampleTerrainMostDetailed, providing the positions for the path you are interested in profiling.

Hope that helps.


Hi Scott,

Thanks for replying,

Do i get array of all the lat,long,height between these 2 points ( or ) height at those two points…

Here’s the docs:

You’ll get a Cartographic object, which contains lat and long properties, in radians, as well as the height in meters.



You will get a Cartographic for each position you specify. You can specify as many positions as needed (not just two).