A reference ellipsoid is an approximation of the Earth's surface as a squashed sphere. More...
#include <Ellipsoid.h>
Public Member Functions | |
Ellipsoid (const std::string &name="", double rad=0.0, double invflat=0.0) | |
Constructor with parameters. More... | |
double | getInverseFlattening () const |
Returns the Ellipsoid inverse flattening. More... | |
const std::string & | getName () const |
Returns the Ellipsoid name. More... | |
double | getRadium () const |
Returns the Ellipsoid radium. More... | |
std::string | getWKT () const |
Returns a WKT string that represents the ellipsoid. More... | |
void | setInverseFlattening (const double &invflat) |
Sets the Ellipsoid inverse flattening. More... | |
void | setName (const std::string &name) |
Sets the Ellipsoid name. More... | |
void | setRadium (const double &rad) |
Sets the Ellipsoid radium. More... | |
Private Attributes | |
double | m_invFlattening |
Earth flattening. More... | |
std::string | m_name |
Ellipsoid name. More... | |
double | m_radium |
Earth equatorial radius (Meters) More... | |
A reference ellipsoid is an approximation of the Earth's surface as a squashed sphere.
Definition at line 50 of file Ellipsoid.h.
te::srs::Ellipsoid::Ellipsoid | ( | const std::string & | name = "" , |
double | rad = 0.0 , |
||
double | invflat = 0.0 |
||
) |
Constructor with parameters.
name | Ellipsoid name (default empty string). |
rad | Semi-major axis (default 0.0); |
invflat | Inverse flattening (default 0.0). |
double te::srs::Ellipsoid::getInverseFlattening | ( | ) | const |
Returns the Ellipsoid inverse flattening.
const std::string& te::srs::Ellipsoid::getName | ( | ) | const |
Returns the Ellipsoid name.
double te::srs::Ellipsoid::getRadium | ( | ) | const |
Returns the Ellipsoid radium.
std::string te::srs::Ellipsoid::getWKT | ( | ) | const |
Returns a WKT string that represents the ellipsoid.
void te::srs::Ellipsoid::setInverseFlattening | ( | const double & | invflat | ) |
void te::srs::Ellipsoid::setName | ( | const std::string & | name | ) |
void te::srs::Ellipsoid::setRadium | ( | const double & | rad | ) |
|
private |
Earth flattening.
Definition at line 97 of file Ellipsoid.h.
|
private |
Ellipsoid name.
Definition at line 95 of file Ellipsoid.h.
|
private |
Earth equatorial radius (Meters)
Definition at line 96 of file Ellipsoid.h.