Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

boost geometry + WGS84, does latitude and longitude, but not altitude?

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?

like image 872
12 revs, 3 users 99% Avatar asked Dec 07 '11 22:12

12 revs, 3 users 99%


1 Answers

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.

like image 148
Gnawme Avatar answered Nov 15 '22 00:11

Gnawme