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

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.

Definition at line 32 of file Datum.cpp.

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

Destructor.

Definition at line 37 of file Datum.cpp.

References m_ellipsoid.

Member Function Documentation

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

Returns the Ellipsoid associated to the Datum.

Definition at line 52 of file Datum.cpp.

References m_ellipsoid.

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

Returns the Datum name.

Definition at line 42 of file Datum.cpp.

References m_name.

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

Returns the WGS84 shifting parameters.

Definition at line 78 of file Datum.cpp.

References m_towgs84.

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

Returns a WKT string that represent the Datum.

Definition at line 83 of file Datum.cpp.

References te::srs::Ellipsoid::getWKT(), m_ellipsoid, m_name, and m_towgs84.

Referenced by te::srs::GeographicCoordinateSystem::getWKT().

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.

Definition at line 57 of file Datum.cpp.

References m_ellipsoid.

Referenced by te::srs::WKTActions::endSpheroid().

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

Sets the Datum name.

Parameters
nameThe Datum name.

Definition at line 47 of file Datum.cpp.

References m_name.

Referenced by te::srs::WKTActions::setDatumName().

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.

Definition at line 65 of file Datum.cpp.

References m_towgs84.

Referenced by te::srs::WKTActions::endToWGS84().

Member Data Documentation

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

Reference ellipsoid.

Definition at line 86 of file Datum.h.

Referenced by getEllipsoid(), getWKT(), setEllipsoid(), and ~Datum().

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

Datum name.

Definition at line 85 of file Datum.h.

Referenced by getName(), getWKT(), and setName().

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.

Referenced by getToWGS84Params(), getWKT(), and setToWGS84Params().


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