GeographicLib 2.1.2
|
Jump to
Various subsets of GeographicLib have been implemented in other languages: C, Fortran, Python, Octave/MATLAB, Java, and JavaScript. These are described here on the main GeographicLib web page.
For the most part, these implementations focus on the geodesic capabilities of GeographicLib, i.e., the classes Geodesic, GeodesicLine, and PolygonAreaT. The exceptions are
Alternatively, it is possible to call the C++ library directly from certain other languages. Examples of this idiom are given in the wrapper
directory in the source distribution.
wrapper/c
gives a small example, which converts heights above the geoid to heights above the ellipsoid.wrapper/javascript
, there is a minimal description of translating C++ source code to JavaScript.wrapper/python
showns how to convert heights above the geoid to heights above the ellipsoid using boost-python
. An alternation is to use Cython.wrapper/octave
solves the inverse geodesic problem for ellipsoids with arbitrary flattening.wrapper/excel
shows how to call the C++ library from Visual Basic which, in turn, allows the functionality to be exposed in Excel. Here computations involving geodesics and rhumb are illustrated. At present this works only on Windows systems.Maxima is a free computer algebra system which can be downloaded from https://maxima.sourceforge.io. Maxima was used to generate the series used by TransverseMercator (tmseries.mac), Geodesic (geod.mac), Rhumb (rhumbarea.mac), The area under a great ellipse (gearea.mac), the relation between Auxiliary latitudes (auxlat.mac), and to generate accurate data for testing (tm.mac and geodesic.mac). The latter uses Maxima's bigfloat arithmetic together with series extended to high order or solutions in terms of elliptic integrals (ellint.mac). These files contain brief instructions on how to use them.