I'm looking to do a couple of calculations over a WGS84 ellipsoid, including: point in polygon on the surface, distance calculations between points, and conversion to/from Cartesian coordinates. It looks like there is a GIS extension to boost geometry that basically does what I need - except that it doesn't appear to convert altitudes to/from Cartesian coordinates - only X/Y and Lat/Lon. Am I missing something? Is this possible? Does anyone have any suggestions?
I'm not sure if the omission is because there are very few places in the world where the WGS84 ellipsoid actually corresponds to sea level.
But as for the mathematics itself, I can suggest this article, supplies conversions from lat-long-altitude (LLA) to Cartesian and back, and references the mathematics behind those conversions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With