osgEarth is hard to get, so it would be great to use the https://geographiclib.sourceforge.io/ for geo -> carthesian conversion.