Hi all,
I have converted a GPX track to CZML. I have the path rendering properly but am unable to get the path to clamp to ground--it's roughly 30m below the surface but varying over time--probably because the GPS was changing its height fix over time. I attempted to resolve this by scrubbing the heights through a sampleTerrain function, which resulted in slightly different values, but still roughly 30m below the surface.
Is there a way to tell a position -> cartographicDegrees to clamp itself to the terrain?
Thank you for this help. My code to reset the heights of the path points wasn't using sampleTerrainMostDetailed. Now it is, and it's working like a charm. I really appreciate the help.