GeographicLib  1.21
Geographic library
Author:
Charles Karney <charles@karney.com>
Version:
1.21
Date:
2012-04-25

Abstract

GeographicLib is a small set of C++ classes for performing conversions between geographic, UTM, UPS, MGRS, geocentric, and local cartesian coordinates, for gravity (e.g., EGM2008), geoid height and geomagnetic field (e.g., WMM2010) calculations, and for solving geodesic problems. The emphasis is on returning accurate results with errors close to round-off (about 5–15 nanometers). New accurate algorithms for Geodesics on the ellipsoid and Transverse Mercator projection have been developed for this library. The functionality of the library can be accessed from user code, from the Utility programs provided, or via the Other interfaces (Javascript, Python, Matlab, Octave). For a sample of the geodesic capabilities in Javascript, check out the online geodesic calculator and the script for displaying geodesics in Google Maps

This library is not a general purpose projection library; use proj.4 for that. On the other hand, it does provide the core functionality offered by geotrans and it cures several of the defects of that package.

Download

The main project page is at

The code is available for download at

as either a compressed tar file (tar.gz) or a zip file. (The two archives have identical contents.) Alternatively you can get the latest stable release using git

  git clone git://geographiclib.git.sf.net/gitroot/geographiclib/geographiclib-release geographiclib
  cd geographiclib; git checkout stable

There are also a binary installers for Windows available at

It is licensed under the MIT/X11 License; see LICENSE.txt for the terms. For more information, see http://geographiclib.sourceforge.net/.

Contents

Forward to Introduction.