GeographicLib  1.35
Introduction
Forward to install. Up to Contents.

GeographicLib offers a C++ interfaces to a small (but important!) set of geographic transformations. It grew out of a desire to improve on the geotrans package for transforming between geographic and MGRS coordinates. At present, GeographicLib provides UTM, UPS, MGRS, geocentric, and local cartesian projections, gravity and geomagnetic models, and classes for geodesic calculations.

The goals of GeographicLib are:

Various utilities are provided with the library. These illustrate the use of the library and are useful in their own right. This library and the utilities have been tested with g++ 4.4 under Linux, with g++ 4.2 under Mac OS X, and with MS Visual Studio 9 (2008), 10 (2010), 11 (2012), and 12 (2013) compiled for 32 bit and 64 bit.

Matlab, JavaScript, and Python interfaces are provided to portions of GeographicLib; see other.

The section geodesic documents the method of solving the geodesic problem.

The section transversemercator documents various properties of this projection.

The bulk of the testing has used geographically relevant values of the flattening. Thus, you can expect close to full accuracy for -0.01 ≤ f ≤ 0.01 (but note that GeographicLib::TransverseMercatorExact is restricted to f > 0). However, reasonably accurate results can be expected if -0.1 ≤ f ≤ 0.1. Outside this range, you should attempt to verify the accuracy of the routines independently. Two types of problems may occur with larger values of f:

Undoubtedly, bugs lurk in this code and in the documentation. Please report any you find to charl.nosp@m.es@k.nosp@m.arney.nosp@m..com.

Forward to install. Up to Contents.