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 }
GeographicLib
Namespace for GeographicLib.
Definition: JacobiConformal.hpp:15
Geoid.hpp
Header for GeographicLib::Geoid class.
GeographicLib::Geoid
Looking up the height of the geoid above the ellipsoid.
Definition: Geoid.hpp:82
BOOST_PYTHON_MODULE
BOOST_PYTHON_MODULE(PyGeographicLib)
Definition: PyGeographicLib.cpp:12
lon
static const double lon
Definition: testGeographicLib.cpp:34
EllipsoidHeight
double EllipsoidHeight(Geoid &geoid, double lat, double lon, double hmsl)
Definition: PyGeographicLib.cpp:7
init
Definition: TutorialInplaceLU.cpp:2
lat
static const double lat
Definition: testGeographicLib.cpp:34


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:03:53