PyGeographicLib.cpp
Go to the documentation of this file.
1 #include <boost/python.hpp>
3 
4 using namespace boost::python;
5 using namespace GeographicLib;
6 
7 double EllipsoidHeight(Geoid& geoid,
8  double lat, double lon, double hmsl) {
9  return hmsl + Geoid::GEOIDTOELLIPSOID * geoid(lat, lon);
10 }
11 
12 BOOST_PYTHON_MODULE(PyGeographicLib) {
13 
14  class_<Geoid, boost::noncopyable>("Geoid", init<std::string>())
15  .def("EllipsoidHeight", &EllipsoidHeight,
16  "Return geoid height:\n\
17  input: lat, lon, height_above_geoid\n\
18  output: height_above_ellipsoid")
19  ;
20 
21 }
static const double lat
double EllipsoidHeight(Geoid &geoid, double lat, double lon, double hmsl)
Namespace for GeographicLib.
BOOST_PYTHON_MODULE(PyGeographicLib)
static const double lon
Header for GeographicLib::Geoid class.
Looking up the height of the geoid above the ellipsoid.
Definition: Geoid.hpp:82


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:35:26