swift
Loading...
Searching...
No Matches
swift::misc::geo::ICoordinateGeodetic Class Referenceabstract

Geodetic coordinate, a position in 3D space relative to the reference geoid. More...

#include <coordinategeodetic.h>

Inheritance diagram for swift::misc::geo::ICoordinateGeodetic:
[legend]

Public Types

enum  ColumnIndex {
  IndexLatitude = CPropertyIndexRef::GlobalIndexICoordinateGeodetic , IndexLongitude , IndexLatitudeAsString , IndexLongitudeAsString ,
  IndexGeodeticHeight , IndexGeodeticHeightAsString , IndexNormalVector
}
 Properties by index. More...

Public Member Functions

 ICoordinateGeodetic ()=default
 Ctor.
virtual ~ICoordinateGeodetic ()=default
 Destructor.
 ICoordinateGeodetic (const ICoordinateGeodetic &)=default
 Copy constructor.
ICoordinateGeodetic & operator= (const ICoordinateGeodetic &)=default
 Copy assignment operator.
virtual CLatitude latitude () const =0
 Latitude.
virtual CLongitude longitude () const =0
 Longitude.
virtual const aviation::CAltitude & geodeticHeight () const =0
 Height, ellipsoidal or geodetic height (used in GPS).
virtual QVector3D normalVector () const =0
 Normal vector.
virtual std::array< double, 3 > normalVectorDouble () const =0
 Normal vector with double precision.
bool equalNormalVectorDouble (const std::array< double, 3 > &otherVector) const
 Is equal? Epsilon considered.
bool equalNormalVectorDouble (const ICoordinateGeodetic &otherCoordinate) const
 Is equal, epsilon considered?
QString latitudeAsString () const
 Latitude as string.
QString longitudeAsString () const
 Longitude as string.
QString geodeticHeightAsString () const
 Height as string.
bool isGeodeticHeightNull () const
 Geodetic height null?
bool hasMSLGeodeticHeight () const
 Geodetic height not null and aviation::CAltitude::MeanSeaLevel.
virtual bool isNull () const
 Is null, means vector x, y, z == 0.
physical_quantities::CLength calculateGreatCircleDistance (const ICoordinateGeodetic &otherCoordinate) const
 Great circle distance.
bool isWithinRange (const ICoordinateGeodetic &otherCoordinate, const physical_quantities::CLength &range) const
 Object within range?
physical_quantities::CAngle calculateBearing (const ICoordinateGeodetic &otherCoordinate) const
 Initial bearing.
QVariant propertyByIndex (CPropertyIndexRef index) const
 Property by index.
int comparePropertyByIndex (CPropertyIndexRef index, const ICoordinateGeodetic &compareValue) const
 Compare for index.
QString convertToQString (bool i18n=false) const
 Cast as QString.

Static Protected Member Functions

static bool canHandleIndex (CPropertyIndexRef index)
 Can given index be handled?
bool isNaNVector () const
 Check values.
bool isNaNVectorDouble () const
 Check values.
bool isInfVector () const
 Check values.
bool isInfVectorDouble () const
 Check values.
bool isValidVectorRange () const
 Check values.
static bool isValidVector (const std::array< double, 3 > &v)
 Check values.

Detailed Description

Geodetic coordinate, a position in 3D space relative to the reference geoid.

Composed of a latitude, longitude, and height (aka altitude, aka elevation).

See also
http://www.esri.com/news/arcuser/0703/geoid1of3.html
http://http://www.gmat.unsw.edu.au/snap/gps/clynch_pdfs/coordcvt.pdf (page 5)
http://en.wikipedia.org/wiki/Geodetic_datum#Vertical_datum

Definition at line 38 of file coordinategeodetic.h.

Member Enumeration Documentation

◆ ColumnIndex

Properties by index.

Definition at line 42 of file coordinategeodetic.h.

Member Function Documentation

◆ calculateBearing()

CAngle swift::misc::geo::ICoordinateGeodetic::calculateBearing ( const ICoordinateGeodetic & otherCoordinate) const

Initial bearing.

Definition at line 139 of file coordinategeodetic.cpp.

◆ calculateGreatCircleDistance()

CLength swift::misc::geo::ICoordinateGeodetic::calculateGreatCircleDistance ( const ICoordinateGeodetic & otherCoordinate) const

Great circle distance.

Definition at line 120 of file coordinategeodetic.cpp.

◆ canHandleIndex()

bool swift::misc::geo::ICoordinateGeodetic::canHandleIndex ( CPropertyIndexRef index)
staticprotected

Can given index be handled?

Definition at line 144 of file coordinategeodetic.cpp.

◆ comparePropertyByIndex()

int swift::misc::geo::ICoordinateGeodetic::comparePropertyByIndex ( CPropertyIndexRef index,
const ICoordinateGeodetic & compareValue ) const

Compare for index.

Definition at line 173 of file coordinategeodetic.cpp.

◆ convertToQString()

QString swift::misc::geo::ICoordinateGeodetic::convertToQString ( bool i18n = false) const

Cast as QString.

Definition at line 201 of file coordinategeodetic.cpp.

◆ equalNormalVectorDouble() [1/2]

bool swift::misc::geo::ICoordinateGeodetic::equalNormalVectorDouble ( const ICoordinateGeodetic & otherCoordinate) const

Is equal, epsilon considered?

Definition at line 115 of file coordinategeodetic.cpp.

◆ equalNormalVectorDouble() [2/2]

bool swift::misc::geo::ICoordinateGeodetic::equalNormalVectorDouble ( const std::array< double, 3 > & otherVector) const

Is equal? Epsilon considered.

Definition at line 100 of file coordinategeodetic.cpp.

◆ geodeticHeight()

virtual const aviation::CAltitude & swift::misc::geo::ICoordinateGeodetic::geodeticHeight ( ) const
pure virtual

Height, ellipsoidal or geodetic height (used in GPS).

This is approximately MSL (orthometric) height, aka altitude, aka elevation. The terms "geodetic height", "altitude", and "elevation" are interchangable. "Geodetic height" is the generic, context-free term for the vertical component of a position. This is commonly called "altitude" for objects that can move freely in the vertical component. By a similar convention, "elevation" is commonly used for objects that are fixed to the ground.

See also
see http://www.gmat.unsw.edu.au/snap/gps/clynch_pdfs/coordcvt.pdf page 5
http://www.esri.com/news/arcuser/0703/geoid1of3.html

Implemented in swift::misc::aviation::CAircraftSituation, swift::misc::aviation::CAirport, swift::misc::aviation::CAtcStation, swift::misc::geo::CCoordinateGeodetic, swift::misc::simulation::CSimulatedAircraft, and swift::misc::simulation::xplane::CNavDataReference.

◆ geodeticHeightAsString()

QString swift::misc::geo::ICoordinateGeodetic::geodeticHeightAsString ( ) const
inline

Height as string.

Definition at line 104 of file coordinategeodetic.h.

◆ hasMSLGeodeticHeight()

bool swift::misc::geo::ICoordinateGeodetic::hasMSLGeodeticHeight ( ) const
inline

Geodetic height not null and aviation::CAltitude::MeanSeaLevel.

Definition at line 110 of file coordinategeodetic.h.

◆ isGeodeticHeightNull()

bool swift::misc::geo::ICoordinateGeodetic::isGeodeticHeightNull ( ) const
inline

Geodetic height null?

Definition at line 107 of file coordinategeodetic.h.

◆ isInfVector()

bool swift::misc::geo::ICoordinateGeodetic::isInfVector ( ) const

Check values.

Definition at line 225 of file coordinategeodetic.cpp.

◆ isInfVectorDouble()

bool swift::misc::geo::ICoordinateGeodetic::isInfVectorDouble ( ) const

Check values.

Definition at line 231 of file coordinategeodetic.cpp.

◆ isNaNVector()

bool swift::misc::geo::ICoordinateGeodetic::isNaNVector ( ) const

Check values.

Definition at line 213 of file coordinategeodetic.cpp.

◆ isNaNVectorDouble()

bool swift::misc::geo::ICoordinateGeodetic::isNaNVectorDouble ( ) const

Check values.

Definition at line 219 of file coordinategeodetic.cpp.

◆ isNull()

virtual bool swift::misc::geo::ICoordinateGeodetic::isNull ( ) const
inlinevirtual

Is null, means vector x, y, z == 0.

Remarks
this is a default implementation, concrete implementations of ICoordinateGeodetic might override it

Reimplemented in swift::misc::aviation::CAircraftSituation, swift::misc::aviation::CAirport, swift::misc::geo::CCoordinateGeodetic, and swift::misc::geo::CElevationPlane.

Definition at line 115 of file coordinategeodetic.h.

◆ isValidVector()

bool swift::misc::geo::ICoordinateGeodetic::isValidVector ( const std::array< double, 3 > & v)
static

Check values.

Definition at line 244 of file coordinategeodetic.cpp.

◆ isValidVectorRange()

bool swift::misc::geo::ICoordinateGeodetic::isValidVectorRange ( ) const

Check values.

Definition at line 237 of file coordinategeodetic.cpp.

◆ isWithinRange()

bool swift::misc::geo::ICoordinateGeodetic::isWithinRange ( const ICoordinateGeodetic & otherCoordinate,
const physical_quantities::CLength & range ) const

Object within range?

Definition at line 125 of file coordinategeodetic.cpp.

◆ latitude()

◆ latitudeAsString()

QString swift::misc::geo::ICoordinateGeodetic::latitudeAsString ( ) const
inline

Latitude as string.

Definition at line 98 of file coordinategeodetic.h.

◆ longitude()

◆ longitudeAsString()

QString swift::misc::geo::ICoordinateGeodetic::longitudeAsString ( ) const
inline

Longitude as string.

Definition at line 101 of file coordinategeodetic.h.

◆ normalVector()

◆ normalVectorDouble()

virtual std::array< double, 3 > swift::misc::geo::ICoordinateGeodetic::normalVectorDouble ( ) const
pure virtual

◆ propertyByIndex()

QVariant swift::misc::geo::ICoordinateGeodetic::propertyByIndex ( CPropertyIndexRef index) const

Property by index.

Definition at line 150 of file coordinategeodetic.cpp.


The documentation for this class was generated from the following files: