Converting a ION transform to longitude / latitude / altitudes

I have some Cesium ION assets that I need mapping in a third party mapping software. When I adjust the longitude latitude, altitude and pitch / bearing etc in the ION asset adjustment tool, I see it edits a transform like this:

 "transform":[0.000845826209772193,0.999999642288947,1.1102230246251558e-16,0,-0.7833860569887793,0.0006626086963936183,0.6215350727555836,0,0.6215348504256185,-0.0005257106548293699,0.7833863372147304,0,3972402.7290990585,-3359.9635459392734,4973323.067031299,1]

Can anyone help me convert this to a longitude/latitude/altitude?

Hi,

This can be done in CesiumJS with the help of the Matrix4.getTranslation function to get the Cartesian3 translation and then the Cartographic.fromCartesian function to get the latitude/longitude/altitude version in radians.

Here is also a Sandcastle link showcasing the above with a sample tileset: Cesium Sandcastle

Please give this a try and reach out again if you run into any issues.

Thanks,
Ankit

1 Like