GeographicLib 2.1.2
GeodSolve.cpp File Reference

Command line utility for geodesic calculations. More...

#include <iostream>
#include <string>
#include <sstream>
#include <fstream>
#include <GeographicLib/Geodesic.hpp>
#include <GeographicLib/GeodesicLine.hpp>
#include <GeographicLib/GeodesicExact.hpp>
#include <GeographicLib/GeodesicLineExact.hpp>
#include <GeographicLib/DMS.hpp>
#include <GeographicLib/Utility.hpp>
#include "GeodSolve.usage"

Go to the source code of this file.

Typedefs

typedef GeographicLib::Math::real real
 

Functions

std::string LatLonString (real lat, real lon, int prec, bool dms, char dmssep, bool longfirst)
 
std::string AzimuthString (real azi, int prec, bool dms, char dmssep)
 
std::string DistanceStrings (real s12, real a12, bool full, bool arcmode, int prec, bool dms)
 
real ReadDistance (const std::string &s, bool arcmode, bool fraction=false)
 
int main (int argc, const char *const argv[])
 

Detailed Description

Command line utility for geodesic calculations.

Copyright (c) Charles Karney (2009-2019) charl.nosp@m.es@k.nosp@m.arney.nosp@m..com and licensed under the MIT/X11 License. For more information, see https://geographiclib.sourceforge.io/

See the man page for usage information.

Definition in file GeodSolve.cpp.

Typedef Documentation

◆ real

Definition at line 31 of file GeodSolve.cpp.

Function Documentation

◆ LatLonString()

std::string LatLonString ( real  lat,
real  lon,
int  prec,
bool  dms,
char  dmssep,
bool  longfirst 
)

Definition at line 33 of file GeodSolve.cpp.

Referenced by main().

◆ AzimuthString()

std::string AzimuthString ( real  azi,
int  prec,
bool  dms,
char  dmssep 
)

Definition at line 45 of file GeodSolve.cpp.

Referenced by main().

◆ DistanceStrings()

std::string DistanceStrings ( real  s12,
real  a12,
bool  full,
bool  arcmode,
int  prec,
bool  dms 
)

Definition at line 51 of file GeodSolve.cpp.

Referenced by main().

◆ ReadDistance()

real ReadDistance ( const std::string &  s,
bool  arcmode,
bool  fraction = false 
)

Definition at line 64 of file GeodSolve.cpp.

Referenced by main().

◆ main()