Command line utility for geodesic calculations. More...
#include <string>#include <iostream>#include <iomanip>#include <sstream>#include <stdexcept>#include "GeographicLib/Geodesic.hpp"#include "GeographicLib/DMS.hpp"Go to the source code of this file.
Functions | |
| int | usage (int retval) |
| std::string | LatLonString (double lat, double lon, int prec, bool dms) |
| std::string | AzimuthString (double azi, int prec, bool dms) |
| double | ReadAzimuth (const std::string &s) |
| int | main (int argc, char *argv[]) |
Command line utility for geodesic calculations.
Copyright (c) Charles Karney (2008) <charles@karney.com> http://charles.karney.info/geographic and licensed under the LGPL.
Compile with
g++ -g -O3 -I.. -o Geod Geod.cpp Geodesic.cpp DMS.cpp Constants.cpp
See Geod for usage information.
Definition in file Geod.cpp.
| std::string LatLonString | ( | double | lat, |
| double | lon, | ||
| int | prec, | ||
| bool | dms | ||
| ) |
Definition at line 78 of file Geod.cpp.
References GeographicLib::DMS::Encode(), GeographicLib::DMS::LATITUDE, and GeographicLib::DMS::LONGITUDE.
Referenced by main().
| std::string AzimuthString | ( | double | azi, |
| int | prec, | ||
| bool | dms | ||
| ) |
Definition at line 92 of file Geod.cpp.
References GeographicLib::DMS::Encode(), and GeographicLib::DMS::AZIMUTH.
Referenced by main().
| double ReadAzimuth | ( | const std::string & | s | ) |
Definition at line 104 of file Geod.cpp.
References GeographicLib::DMS::Decode(), and GeographicLib::DMS::LATITUDE.
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 117 of file Geod.cpp.
References usage(), GeographicLib::DMS::DecodeLatLon(), ReadAzimuth(), GeographicLib::Geodesic::Line(), GeographicLib::GeodesicLine::Position(), LatLonString(), AzimuthString(), GeographicLib::Geodesic::Inverse(), and GeographicLib::Geodesic::Direct().
1.7.5