C library for Geodesics
2.1
|
To use the library put
in your source code. If you are using the library via PROJ, change this to
The documention of the library is given in the header file, geodesic.h. Here is a brief summary of the functions.
Simple geodesic problems:
The library allows multiple points on a single geodesic line (specified by lat1, lon1, and azi1) to be computed efficiently as follows:
Finally, the library provides a way to compute the area of a polygon. The polygon is defined by adding successively either vertices or edges. This is done "progressively", to allow the area to be tracked as the polygon "grows".
You can check the version of the geodesic library with, e.g.,