Typedefs | Functions

Geod.cpp File Reference

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[])

Detailed Description

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 Documentation

Definition at line 23 of file Geod.cpp.


Function Documentation

std::string LatLonString ( real  lat,
real  lon,
int  prec,
bool  dms 
)
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().

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

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[] 
)