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 Ellipsoid * | getEllipsoid () 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 > ¶ms) |
| Sets the Datum shifting parameters relative to WGS84. More... | |
| ~Datum () | |
| Destructor. More... | |
Private Attributes | |
| Ellipsoid * | m_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... | |
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.
| te::srs::Datum::Datum | ( | const std::string & | name = "", |
| Ellipsoid * | ellps = 0 |
||
| ) |
| te::srs::Datum::~Datum | ( | ) |
| 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 |
| const std::vector< double > & te::srs::Datum::getToWGS84Params | ( | ) | const |
| 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.
| ellps | Pointer 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 | ) |
| 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.
| params | A vector of shifting parameters. |
Definition at line 65 of file Datum.cpp.
References m_towgs84.
Referenced by te::srs::WKTActions::endToWGS84().
|
private |
Reference ellipsoid.
Definition at line 86 of file Datum.h.
Referenced by getEllipsoid(), getWKT(), setEllipsoid(), and ~Datum().
|
private |
|
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().