Command line utility for geodesic calculations. More...
#include "GeographicLib/Geodesic.hpp"
#include "GeographicLib/GeodesicLine.hpp"
#include "GeographicLib/DMS.hpp"
#include <iostream>
#include <sstream>
#include "Geod.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) |
std::string | AzimuthString (real azi, int prec, bool dms) |
std::string | DistanceStrings (real s12, real a12, bool full, bool arcmode, int prec, bool dms) |
real | ReadDistance (const std::string &s, bool arcmode) |
int | main (int argc, char *argv[]) |
Command line utility for geodesic calculations.
Copyright (c) Charles Karney (2009, 2010, 2011) <charles@karney.com> and licensed under the LGPL. For more information, see http://geographiclib.sourceforge.net/
Compile with -I../include and link with Geodesic.o GeodesicLine.o DMS.o
See the man page for usage information.
Definition in file Geod.cpp.
typedef GeographicLib::Math::real real |
Definition at line 25 of file Geod.cpp.
References GeographicLib::DMS::Encode(), GeographicLib::DMS::LATITUDE, GeographicLib::DMS::LONGITUDE, and GeographicLib::DMS::NUMBER.
Referenced by main().
std::string AzimuthString | ( | real | azi, | |
int | prec, | |||
bool | dms | |||
) |
Definition at line 34 of file Geod.cpp.
References GeographicLib::DMS::AZIMUTH, GeographicLib::DMS::Encode(), and GeographicLib::DMS::NUMBER.
Referenced by main().
Definition at line 40 of file Geod.cpp.
References GeographicLib::DMS::Encode(), GeographicLib::DMS::NONE, and GeographicLib::DMS::NUMBER.
Referenced by main().
real ReadDistance | ( | const std::string & | s, | |
bool | arcmode | |||
) |
Definition at line 54 of file Geod.cpp.
References GeographicLib::DMS::Decode(), and GeographicLib::DMS::DecodeAngle().
Referenced by main().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 59 of file Geod.cpp.
References AzimuthString(), GeographicLib::DMS::Decode(), GeographicLib::DMS::DecodeAzimuth(), GeographicLib::DMS::DecodeLatLon(), DistanceStrings(), GeographicLib::DMS::Encode(), LatLonString(), GeographicLib::DMS::NUMBER, and ReadDistance().