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];
 
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. 
 
void setToWGS84Params(const std::vector< double > ¶ms)
Sets the Datum shifting parameters relative to WGS84. 
 
std::string getWKT() const 
Returns a WKT string that represent the Datum. 
 
void setEllipsoid(Ellipsoid *ellps)
Sets the Ellipsoid associated to the Datum. 
 
const std::vector< double > & getToWGS84Params() const 
Returns the WGS84 shifting parameters. 
 
void setName(const std::string &name)
Sets the Datum name. 
 
This file contains the support to represent a geodetic datum. 
 
const std::string & getName() const 
Returns the Datum name. 
 
Datum(const std::string &name="", Ellipsoid *ellps=0)
Constructor with parameters. 
 
const Ellipsoid * getEllipsoid() const 
Returns the Ellipsoid associated to the Datum.