12 Geoid egm96(
"egm96-5");
14 double lat = 42,
lon = -75, height_above_geoid = 20;
16 geoid_height = egm96(lat,
lon),
17 height_above_ellipsoid = (height_above_geoid +
18 Geoid::GEOIDTOELLIPSOID * geoid_height);
19 cout << height_above_ellipsoid <<
"\n";
21 catch (
const exception&
e) {
22 cerr <<
"Caught exception: " << e.what() <<
"\n";
Namespace for GeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Header for GeographicLib::Geoid class.
Looking up the height of the geoid above the ellipsoid.