Geod.cpp File Reference

Command line utility for geodesic calculations. More...

#include "GeographicLib/Geodesic.hpp"
#include "GeographicLib/DMS.hpp"
#include <iostream>
#include <iomanip>
#include <sstream>

Go to the source code of this file.

Typedefs

typedef GeographicLib::Math::real real

Functions

int usage (int retval)
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) <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 DMS.o

See Geod for usage information.

Definition in file Geod.cpp.


Typedef Documentation

Definition at line 91 of file Geod.cpp.


Function Documentation

int usage ( int  retval  ) 

Definition at line 20 of file Geod.cpp.

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

Definition at line 93 of file Geod.cpp.

Referenced by main().

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

Definition at line 102 of file Geod.cpp.

Referenced by main().

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

Definition at line 108 of file Geod.cpp.

Referenced by main().

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

Definition at line 122 of file Geod.cpp.

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

Definition at line 127 of file Geod.cpp.

References AzimuthString(), DistanceStrings(), LatLonString(), ReadDistance(), and usage().


Generated on 21 May 2010 for GeographicLib by  doxygen 1.6.1