7 #ifndef DtGeodeticCoord_H_
8 #define DtGeodeticCoord_H_
22 #ifdef DtUSE_UTILITIES_NAMESPACE
23 namespace DtUSE_UTILITIES_NAMESPACE
63 virtual void getGeocentric(
DtVector& geocentric )
const;
70 virtual void printData()
const;
71 virtual void printDataToStream(std::ostream &str)
const;
91 virtual void setGeoidDatumType(
DtGeoidType geoid );
117 double latDegrees =
DtRad2Deg((*
this)[0]);
118 double lonDegrees =
DtRad2Deg((*
this)[1]);
120 double und = myGeoidDatum->undulation(latDegrees, lonDegrees);
121 return (*
this)[2] - und;
144 double latDegrees =
DtRad2Deg((*
this)[0]);
145 double lonDegrees =
DtRad2Deg((*
this)[1]);
147 double und = myGeoidDatum->undulation(latDegrees, lonDegrees);
148 (*this)[2] = alt + und;
160 #ifdef DtUSE_UTILITIES_NAMESPACE
This file contains the declaration of the DtGeoidDatum class as well as commonly used geoids...
virtual DtFloat64 alt() const
Definition: geodeticCoord.h:108
double DtRad2Deg(double rad)
Converts Radians to Degrees.
Definition: vlMath.h:81
void DtGeocToGeod(const DtVector &in, DtGeodeticCoord &out)
This function is deprecated, and provided for backwards compatibility only!
std::ostream & operator<<(std::ostream &os, const Dt3dChord &chord)
Definition: geoidDatum.h:59
Instances of DtGeodeticCoord are used to explicitly represent Geodetic coordinates.
Definition: geodeticCoord.h:30
DtMapDatums represent a spheroid model of the earth, with a data shift to facilitate easy conversion ...
Definition: mapDatum.h:50
Instances of this class are used to store a particular mapDatum and perform useful calculations based...
Definition: referenceEllipsoid.h:41
This file declares DtVector and DtVector32.
This file defines math constants and methods which may be useful in simulations.
Definition: vlVector.h:224
virtual void setLon(DtFloat64 lon)
Set/Get the longitude.
Definition: geodeticCoord.h:130
const DtReferenceEllipsoid * myEllipsoid
Definition: geodeticCoord.h:94
#define DT_DLL_MATRIX
Definition: vlMachineTypes.h:107
DtReferenceEllipsoid * DtGlobalEllipsoid()
Call this function to obtain a ptr to the global ellipsoid which is used for geodetic coord conversio...
virtual void setLat(DtFloat64 lat)
Set/Get the latitude.
Definition: geodeticCoord.h:125
virtual void setAlt(DtFloat64 alt)
Set/Get the altitude.
Definition: geodeticCoord.h:135
virtual DtFloat64 lat() const
Definition: geodeticCoord.h:98
void DtGeodToGeoc(const DtGeodeticCoord &in, DtVector &out)
This function is deprecated, and provided for backwards compatibility only!
virtual DtFloat64 lon() const
Definition: geodeticCoord.h:103
DtGeoidDatum * myGeoidDatum
Definition: geodeticCoord.h:95
This file contains the declaration of DtReferenceEllipsoid and several helper functions.
DtGeoidType
Geoid Type enumerations. Default is DtNoGeoid. There are 3 supported EGM models, EGM84, EGM96, EGM2008 in different resolutions.
Definition: geoidDatum.h:40