25 #include "../common/Exception.h" 26 #include "../core/translator/Translator.h" 27 #include "../common/UnitOfMeasure.h" 28 #include "../common/UnitsOfMeasureManager.h" 37 const std::string unitName,
74 std::ostringstream sstr;
77 std::string wkt =
"GEOGCS[\"";
98 wkt += unit->getWKT();
102 wkt +=
",AUTHORITY[\"";
A geodetic datum defines a reference to measure Earth's surface.
GeographicCoordinateSystem(const std::string &name="", const std::string unitName="degree", double primem=0.0)
Constructor with parameters.
This file contains the support to represent a geodetic datum.
std::pair< unsigned int, std::string > m_srid
const Datum * getDatum() const
Returns the associated Datum.
~GeographicCoordinateSystem()
Destructor.
A Spatial Reference System, also known as a Coordinate System.
void setDatum(Datum *datum)
Sets the associated Datum.
double m_primem
The meridian used to take longitude measurements from.
static UnitsOfMeasureManager & getInstance()
It returns a reference to the singleton instance.
void setPrimem(double primen)
Sets the meridian used to take longitude measurements from.
double getPrimem() const
Returns the meridian used to take longitude measurements from.
std::string getWKT() const
Returns an OGC's WKT representation for the SRS.
std::string getWKT() const
Returns a WKT string that represent the Datum.
boost::shared_ptr< UnitOfMeasure > UnitOfMeasurePtr
This file contains the structs necessary to represent a GeographicCoordinateSystem.
bool isGeographic() const
Returns true is a geographic coordinate system and false otherwise.
UnitOfMeasurePtr find(unsigned int id) const
Returns a unit of measure identified by its identificaton.