ADD: new track message, Entity class and Position class

This commit is contained in:
Henry Winkel
2022-12-20 17:20:35 +01:00
parent 469ecfb099
commit 98ebb563a8
2114 changed files with 482360 additions and 24 deletions

View File

@@ -0,0 +1,21 @@
#include <boost/python.hpp>
#include <GeographicLib/Geoid.hpp>
using namespace boost::python;
using namespace GeographicLib;
double EllipsoidHeight(Geoid& geoid,
double lat, double lon, double hmsl) {
return hmsl + Geoid::GEOIDTOELLIPSOID * geoid(lat, lon);
}
BOOST_PYTHON_MODULE(PyGeographicLib) {
class_<Geoid, boost::noncopyable>("Geoid", init<std::string>())
.def("EllipsoidHeight", &EllipsoidHeight,
"Return geoid height:\n\
input: lat, lon, height_above_geoid\n\
output: height_above_ellipsoid")
;
}