All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.

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.

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

Returns the Datum name.

Definition at line 42 of file Datum.cpp.

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

Returns the WGS84 shifting parameters.

Definition at line 78 of file Datum.cpp.

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

Returns a WKT string that represent the Datum.

Definition at line 83 of file Datum.cpp.

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.

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.

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.

Member Data Documentation

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

Reference ellipsoid.

Definition at line 86 of file Datum.h.

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

Datum name.

Definition at line 85 of file Datum.h.

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 files: