70 for (i=0; i<params.size(); m_towgs84.push_back(params[i]), ++i);
73 m_towgs84.push_back(0.0);
85 std::ostringstream sstr;
88 std::string wkt =
"DATUM[\"";
91 wkt += m_ellipsoid->getWKT();
92 if (!m_towgs84.empty())
99 for (i=1; i<m_towgs84.size(); ++i)
103 sstr << m_towgs84[i];
This file contains the support to represent a geodetic datum.
void setToWGS84Params(const std::vector< double > ¶ms)
Sets the Datum shifting parameters relative to WGS84.
Datum(const std::string &name="", Ellipsoid *ellps=0)
Constructor with parameters.
const std::string & getName() const
Returns the Datum name.
void setEllipsoid(Ellipsoid *ellps)
Sets the Ellipsoid associated to the Datum.
const Ellipsoid * getEllipsoid() const
Returns the Ellipsoid associated to the Datum.
std::string getWKT() const
Returns a WKT string that represent the Datum.
void setName(const std::string &name)
Sets the Datum name.
const std::vector< double > & getToWGS84Params() const
Returns the WGS84 shifting parameters.
A reference ellipsoid is an approximation of the Earth's surface as a squashed sphere.
This file contains the structs necessary to model an Ellipsoid.