geographiclib/2.3

Convert geographic units and solve geodesic problems
Recipe info
2024-06-11

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
geographiclib/2.3

Using geographiclib

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
geographiclib/2.3
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("geographiclib/2.3")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): geographiclib
  • CMake target name(s): GeographicLib::GeographicLib
  • pkg-config file name(s): geographiclib.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(geographiclib REQUIRED)
# ...
target_link_libraries(YOUR_TARGET GeographicLib::GeographicLib)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the geographiclib homepage listed above:

#include "GeographicLib/Accumulator.hpp"
#include "GeographicLib/AlbersEqualArea.hpp"
#include "GeographicLib/AuxAngle.hpp"
#include "GeographicLib/AuxLatitude.hpp"
#include "GeographicLib/AzimuthalEquidistant.hpp"
#include "GeographicLib/CassiniSoldner.hpp"
#include "GeographicLib/CircularEngine.hpp"
#include "GeographicLib/Config.h"
#include "GeographicLib/Constants.hpp"
#include "GeographicLib/DAuxLatitude.hpp"
#include "GeographicLib/DMS.hpp"
#include "GeographicLib/DST.hpp"
#include "GeographicLib/Ellipsoid.hpp"
#include "GeographicLib/EllipticFunction.hpp"
#include "GeographicLib/GARS.hpp"
#include "GeographicLib/GeoCoords.hpp"
#include "GeographicLib/Geocentric.hpp"
#include "GeographicLib/Geodesic.hpp"
#include "GeographicLib/GeodesicExact.hpp"
#include "GeographicLib/GeodesicLine.hpp"
#include "GeographicLib/GeodesicLineExact.hpp"
#include "GeographicLib/Geohash.hpp"
#include "GeographicLib/Geoid.hpp"
#include "GeographicLib/Georef.hpp"
#include "GeographicLib/Gnomonic.hpp"
#include "GeographicLib/GravityCircle.hpp"
#include "GeographicLib/GravityModel.hpp"
#include "GeographicLib/Intersect.hpp"
#include "GeographicLib/LambertConformalConic.hpp"
#include "GeographicLib/LocalCartesian.hpp"
#include "GeographicLib/MGRS.hpp"
#include "GeographicLib/MagneticCircle.hpp"
#include "GeographicLib/MagneticModel.hpp"
#include "GeographicLib/Math.hpp"
#include "GeographicLib/NearestNeighbor.hpp"
#include "GeographicLib/NormalGravity.hpp"
#include "GeographicLib/OSGB.hpp"
#include "GeographicLib/PolarStereographic.hpp"
#include "GeographicLib/PolygonArea.hpp"
#include "GeographicLib/Rhumb.hpp"
#include "GeographicLib/SphericalEngine.hpp"
#include "GeographicLib/SphericalHarmonic.hpp"
#include "GeographicLib/SphericalHarmonic1.hpp"
#include "GeographicLib/SphericalHarmonic2.hpp"
#include "GeographicLib/TransverseMercator.hpp"
#include "GeographicLib/TransverseMercatorExact.hpp"
#include "GeographicLib/UTMUPS.hpp"
#include "GeographicLib/Utility.hpp"