C library for Geodesics
2.1
|
The PROJ library (especially as provided as part of a Linux distribution) may lag behind the code documented here by about a year.
Download the source code from as a tarball from
or check out the source code from
Build the code with cmake
cmake -B BUILD -S . cd BUILD make make test
possibly including some options via -D
:
CONVERT_WARNINGS_TO_ERRORS
warnings are fatal (default ON)BUILD_DOCUMENTATION
look for doxgen and build documentation (default ON)BUILD_SHARED_LIBS
make a shared (instead of static) library (default ON)CMake code to install the library is not provided.
The library consists of two files geodesic.c and geodesic.h.
Licensed under the MIT/X11 License; see LICENSE.txt.
Also included are 3 small test programs:
Here, for example, is inverse.c
Use inverse, for example, with
echo -30 0 29.5 179.5 | ./tools/inverse