Converting sphere bounding volume to latitude and longitude


I have a Cesium 3D tileset covering an area in Boston with a root bounding volume as follows:


How can I convert this to latitude and longitude? I read some documentation and reviewed some source code, but could not figure it out.

Thanks for your help!


Assuming your current specification is ECEF, which can be represented as Cartesian3 in Cesium, you want to convert to LLA, which is Cartographic in Cesium. So something like:

var lla = new Cesium.Cartographic.fromCartesian(new Cesium.Cartesian3(1527780.02515,-4464217.70308,4277167.40653,3535.57128));

Thank you!

FYI, the following code produces a latitude of 42.3834206746632 degrees and a longitude of -71.10762047720543 degrees, which is what I was looking for.

var cartesian = new Cesium.Cartesian3(1527780.02515, -4464217.70308, 4277167.40653);
var cartographic = Cesium.Cartographic.fromCartesian(cartesian);
var latitude = Cesium.Math.toDegrees(cartographic.latitude);
var longitude = Cesium.Math.toDegrees(cartographic.longitude);