geotrans/3.9

MSP GEOTRANS is the NGA and DOD approved coordinate converter and datum translator.
Recipe info
NGA GEOTRANS ToS (https://earth-info.nga.mil/php/download.php?file=wgs-terms)
2023-02-14

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
geotrans/3.9

Using geotrans

Note

If you are new with Conan, we recommend to read the section how to consume packages.

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]
geotrans/3.9
[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("geotrans/3.9")

    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): geotrans
  • CMake target name(s): geotrans::geotrans
  • pkg-config file name(s): geotrans.pc

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

# ...
find_package(geotrans REQUIRED)
# ...
target_link_libraries(YOUR_TARGET geotrans::geotrans)

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

#include "Accuracy.h"
#include "AlbersEqualAreaConic.h"
#include "AzimuthalEquidistant.h"
#include "BNGCoordinates.h"
#include "Bonne.h"
#include "BritishNationalGrid.h"
#include "CCSThreadLock.h"
#include "CCSThreadMutex.h"
#include "CartesianCoordinates.h"
#include "Cassini.h"
#include "CoordinateConversionException.h"
#include "CoordinateConversionService.h"
#include "CoordinateSystem.h"
#include "CoordinateSystemParameters.h"
#include "CoordinateTuple.h"
#include "CoordinateType.h"
#include "CylindricalEqualArea.h"
#include "Datum.h"
#include "DatumLibrary.h"
#include "DatumLibraryImplementation.h"
#include "DatumType.h"
#include "DtccApi.h"
#include "Eckert4.h"
#include "Eckert6.h"
#include "Ellipsoid.h"
#include "EllipsoidLibrary.h"
#include "EllipsoidLibraryImplementation.h"
#include "EllipsoidParameters.h"
#include "EquidistantCylindrical.h"
#include "EquidistantCylindricalParameters.h"
#include "ErrorMessages.h"
#include "GARS.h"
#include "GARSCoordinates.h"
#include "GEOREF.h"
#include "GEOREFCoordinates.h"
#include "Geocentric.h"
#include "GeodeticCoordinates.h"
#include "GeodeticParameters.h"
#include "GeoidLibrary.h"
#include "Gnomonic.h"
#include "HeightType.h"
#include "LambertConformalConic.h"
#include "LocalCartesian.h"
#include "LocalCartesianParameters.h"
#include "LocalSpherical.h"
#include "MGRS.h"
#include "MGRSorUSNGCoordinates.h"
#include "MapProjection3Parameters.h"
#include "MapProjection4Parameters.h"
#include "MapProjection5Parameters.h"
#include "MapProjection6Parameters.h"
#include "MapProjectionCoordinates.h"
#include "Mercator.h"
#include "MercatorScaleFactorParameters.h"
#include "MercatorStandardParallelParameters.h"
#include "MillerCylindrical.h"
#include "Mollweide.h"
#include "NZMG.h"
#include "Neys.h"
#include "NeysParameters.h"
#include "ObliqueMercator.h"
#include "ObliqueMercatorParameters.h"
#include "Orthographic.h"
#include "PolarStereographic.h"
#include "PolarStereographicScaleFactorParameters.h"
#include "PolarStereographicStandardParallelParameters.h"
#include "Polyconic.h"
#include "Precision.h"
#include "SevenParameterDatum.h"
#include "Sinusoidal.h"
#include "SourceOrTarget.h"
#include "Spherical.h"
#include "SphericalCoordinates.h"
#include "Stereographic.h"
#include "ThreeParameterDatum.h"
#include "TransverseCylindricalEqualArea.h"
#include "TransverseMercator.h"
#include "UPS.h"
#include "UPSCoordinates.h"
#include "USNG.h"
#include "UTM.h"
#include "UTMCoordinates.h"
#include "UTMParameters.h"
#include "VanDerGrinten.h"
#include "WarningMessages.h"
#include "WebMercator.h"
#include "egm2008_aoi_grid_package.h"
#include "egm2008_full_grid_package.h"
#include "egm2008_geoid_grid.h"