GeographicLib
1.21
|
Command line utility for geodesic calculations. More...
#include <iostream>
#include <sstream>
#include <string>
#include <fstream>
#include <GeographicLib/Geodesic.hpp>
#include <GeographicLib/GeodesicLine.hpp>
#include <GeographicLib/DMS.hpp>
#include <GeographicLib/Utility.hpp>
#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, char dmssep) |
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) |
int | main (int argc, char *argv[]) |
Command line utility for geodesic calculations.
Copyright (c) Charles Karney (2009-2012) <charles@karney.com> and licensed under the MIT/X11 License. For more information, see http://geographiclib.sourceforge.net/
Compile and link with g++ -g -O3 -I../include -I../man -o Geod \ Geod.cpp \ ../src/DMS.cpp \ ../src/Geodesic.cpp \ ../src/GeodesicLine.cpp
See the man page for usage information.
Definition in file Geod.cpp.
typedef GeographicLib::Math::real real |
Definition at line 34 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, | ||
char | dmssep | ||
) |
Definition at line 43 of file Geod.cpp.
References GeographicLib::DMS::Encode(), GeographicLib::DMS::AZIMUTH, and GeographicLib::DMS::NUMBER.
Referenced by main().
Definition at line 49 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 62 of file Geod.cpp.
References GeographicLib::DMS::DecodeAngle().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 67 of file Geod.cpp.
References GeographicLib::DMS::DecodeLatLon(), GeographicLib::DMS::DecodeAzimuth(), GeographicLib::Geodesic::Line(), GeographicLib::Geodesic::Inverse(), LatLonString(), AzimuthString(), DistanceStrings(), ReadDistance(), GeographicLib::Geodesic::ArcDirect(), and GeographicLib::Geodesic::Direct().