Fortran library for Geodesics
2.0
|
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 the file geodesic.for
Licensed under the MIT/X11 License; see LICENSE.txt.
Also included are 3 small test programs:
Here, for example, is geodinverse.for
Use geodinverse, for example, with
echo -30 0 29.5 179.5 | ./tools/geodinverse
Finally, the two programs
which are also built with cmake, provide drop-in replacements for replacements for the NGS tools FORWARD and INVERSE available from https://www.ngs.noaa.gov/TOOLS/Inv_Fwd/Inv_Fwd.html.
These cure two problems of the Vincenty algorithms used by NGS:
The corresponding source files
are derived from the NGS source files
and are therefore in the public domain.