te::srs::Datum Class Reference

A geodetic datum defines a reference to measure Earth's surface. More...

#include <Datum.h>

Public Member Functions

 Datum (const std::string &name="", Ellipsoid *ellps=0)
 Constructor with parameters. More...
 
const EllipsoidgetEllipsoid () const
 Returns the Ellipsoid associated to the Datum. More...
 
const std::string & getName () const
 Returns the Datum name. More...
 
const std::vector< double > & getToWGS84Params () const
 Returns the WGS84 shifting parameters. More...
 
std::string getWKT () const
 Returns a WKT string that represent the Datum. More...
 
void setEllipsoid (Ellipsoid *ellps)
 Sets the Ellipsoid associated to the Datum. More...
 
void setName (const std::string &name)
 Sets the Datum name. More...
 
void setToWGS84Params (const std::vector< double > &params)
 Sets the Datum shifting parameters relative to WGS84. More...
 
 ~Datum ()
 Destructor. More...
 

Private Attributes

Ellipsoidm_ellipsoid
 Reference ellipsoid. More...
 
std::string m_name
 Datum name. More...
 
std::vector< double > m_towgs84
 To store shifting parametes necessary to execute Datum shifting to a WGS84 Datum. More...
 

Detailed Description

A geodetic datum defines a reference to measure Earth's surface.

Planimetric datum parameters are used for defining geodetic coordinates, which are necessary to establish a map projection system.

Definition at line 35 of file Datum.h.

Constructor & Destructor Documentation

◆ Datum()

te::srs::Datum::Datum ( const std::string &  name = "",
Ellipsoid ellps = 0 
)

Constructor with parameters.

Parameters
nameDatum name (default empty string)..
ellpsPointer to the Ellipsoid associated to the Datum. Default null. Class takes the pointer ownership.

◆ ~Datum()

te::srs::Datum::~Datum ( )

Destructor.

Member Function Documentation

◆ getEllipsoid()

const Ellipsoid* te::srs::Datum::getEllipsoid ( ) const

Returns the Ellipsoid associated to the Datum.

◆ getName()

const std::string& te::srs::Datum::getName ( ) const

Returns the Datum name.

◆ getToWGS84Params()

const std::vector<double>& te::srs::Datum::getToWGS84Params ( ) const

Returns the WGS84 shifting parameters.

◆ getWKT()

std::string te::srs::Datum::getWKT ( ) const

Returns a WKT string that represent the Datum.

◆ setEllipsoid()

void te::srs::Datum::setEllipsoid ( Ellipsoid ellps)

Sets the Ellipsoid associated to the Datum.

Parameters
ellpsPointer to the ellipsoid. Do not pass null. Class takes the pointer ownership.

◆ setName()

void te::srs::Datum::setName ( const std::string &  name)

Sets the Datum name.

Parameters
nameThe Datum name.

◆ setToWGS84Params()

void te::srs::Datum::setToWGS84Params ( const std::vector< double > &  params)

Sets the Datum shifting parameters relative to WGS84.

This indicates a list of up to 7 Bursa Wolf transformation parameters. These parameters can be used to approximate a transformation from a given datum to the WGS84.

Parameters
paramsA vector of shifting parameters.

Member Data Documentation

◆ m_ellipsoid

Ellipsoid* te::srs::Datum::m_ellipsoid
private

Reference ellipsoid.

Definition at line 86 of file Datum.h.

◆ m_name

std::string te::srs::Datum::m_name
private

Datum name.

Definition at line 85 of file Datum.h.

◆ m_towgs84

std::vector<double> te::srs::Datum::m_towgs84
private

To store shifting parametes necessary to execute Datum shifting to a WGS84 Datum.

Definition at line 87 of file Datum.h.


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