Geodetic Class Reference
[Geodetic coordinates and geoids]

#include <Geodetic.hpp>

Inheritance diagram for Geodetic:

Inheritance graph
[legend]
Collaboration diagram for Geodetic:

Collaboration graph
[legend]
List of all members.

Detailed Description

Specialization of triple that represents geodetic coordinates (latitude in degrees, longitude in degrees, altitude in m).

Definition at line 77 of file Geodetic.hpp.

Public Member Functions

 Geodetic ()
 Default constructor.
 Geodetic (const Geodetic &right)
 Copy constructor.
 Geodetic (const double &lat, const double &lon, const double &alt, GeoidModel *geo=NULL)
 Construct from three doubles.
 Geodetic (const Triple &t, GeoidModel *geo=NULL)
 Construct from a Triple and a GeoidMode.
 Geodetic (const ECEF &right, GeoidModel *geo) throw (NoGeoidException)
 Construct from an ECEF and a GeoidModel.
virtual ~Geodetic ()
 destructor
Geodeticoperator= (const Geodetic &right)
 Assignment operator.
gpstk::ECEF asECEF () const throw (NoGeoidException)
 Convert to Earth-centered, Earth-fixed XYZ coordinates.
double getLatitude () const throw ()
double getLongitude () const throw ()
double getAltitude () const throw ()

Protected Attributes

GeoidModelgeoid


Constructor & Destructor Documentation

Geodetic  ) 
 

Default constructor.

Definition at line 60 of file Geodetic.cpp.

Geodetic const Geodetic right  ) 
 

Copy constructor.

Definition at line 65 of file Geodetic.cpp.

Geodetic const double &  lat,
const double &  lon,
const double &  alt,
GeoidModel geo = NULL
 

Construct from three doubles.

Be careful you don't specify a geoid that will disappear (e.g. one on the stack where these coordinates will be used outside that context).

Parameters:
lat latitude in degrees.
lon longitude in degrees.
alt altitude in m.
geo geoid model for transformations.

Definition at line 70 of file Geodetic.cpp.

Geodetic const Triple t,
GeoidModel geo = NULL
 

Construct from a Triple and a GeoidMode.

The triple is latitude in degrees, longitude in degrees, and altitude in meters. Be careful you don't specify a geoid that will disappear (e.g. one on the stack where these coordinates will be used outside that context).

Parameters:
t the Triple to copy from.
geo geoid model for transformations.

Definition at line 76 of file Geodetic.cpp.

Geodetic const ECEF right,
GeoidModel geo
throw (NoGeoidException)
 

Construct from an ECEF and a GeoidModel.

Converts Earth-centered, Earth-fixed XYZ coordinates (m) to Geodetic coordinates (lat,lon(E),ht) (deg,degE,m). Be careful you don't specify a geoid that will disappear (e.g. one on the stack where these coordinates will be used outside that context).

Parameters:
right the ECEF to construct from.
geo geoid model for transformations.

Definition at line 81 of file Geodetic.cpp.

References ABS, gpstk::cos(), gpstk::RSS(), gpstk::sin(), and SQRT.

virtual ~Geodetic  )  [inline, virtual]
 

destructor

Definition at line 119 of file Geodetic.hpp.


Member Function Documentation

gpstk::ECEF asECEF  )  const throw (NoGeoidException)
 

Convert to Earth-centered, Earth-fixed XYZ coordinates.

Definition at line 168 of file Geodetic.cpp.

References GeoidModel::a(), GeoidModel::eccSquared(), Geodetic::geoid, Geodetic::getAltitude(), Geodetic::getLatitude(), Geodetic::getLongitude(), GPSTK_THROW, gpstk::pow(), gpstk::sin(), and gpstk::sqrt().

double getAltitude  )  const throw () [inline]
 

Definition at line 129 of file Geodetic.hpp.

Referenced by Geodetic::asECEF(), and ObsRngDev::ObsRngDev().

double getLatitude  )  const throw () [inline]
 

Definition at line 127 of file Geodetic.hpp.

Referenced by Geodetic::asECEF(), and ObsRngDev::ObsRngDev().

double getLongitude  )  const throw () [inline]
 

Definition at line 128 of file Geodetic.hpp.

Referenced by Geodetic::asECEF().

Geodetic & operator= const Geodetic right  ) 
 

Assignment operator.

Definition at line 114 of file Geodetic.cpp.

References Geodetic::geoid.


Member Data Documentation

GeoidModel* geoid [protected]
 

Definition at line 132 of file Geodetic.hpp.

Referenced by Geodetic::asECEF(), and Geodetic::operator=().


The documentation for this class was generated from the following files:
Generated on Thu Mar 11 03:31:18 2010 for GPS ToolKit Software Library by  doxygen 1.3.9.1