A Geographic Coordinate System (GEOGCS). More...
#include <GeographicCoordinateSystem.h>
  
 Public Member Functions | |
| GeographicCoordinateSystem (const std::string &name="", const std::string unitName="degree", double primem=0.0) | |
| Constructor with parameters.  More... | |
| const Datum * | getDatum () const | 
| Returns the associated Datum.  More... | |
| const std::string & | getName () const | 
| Returns the SRS name.  More... | |
| double | getPrimem () const | 
| Returns the meridian used to take longitude measurements from.  More... | |
| void | getSRID (int &id, std::string &authName) const | 
| Returns SRS integer identification.  More... | |
| const std::string & | getUnitName () const | 
| Returns the SRS unit name.  More... | |
| std::string | getWKT () const | 
| Returns an OGC's WKT representation for the SRS.  More... | |
| bool | isGeographic () const | 
| Returns true is a geographic coordinate system and false otherwise.  More... | |
| void | setDatum (Datum *datum) | 
| Sets the associated Datum.  More... | |
| void | setName (const std::string &name) | 
| Sets the SRS name.  More... | |
| void | setPrimem (double primen) | 
| Sets the meridian used to take longitude measurements from.  More... | |
| void | setSRID (int id, const std::string &authName="EPSG") | 
| Sets the SRS integer identification.  More... | |
| void | setUnitName (const std::string &name) | 
| Sets the SRS unit name.  More... | |
| ~GeographicCoordinateSystem () | |
| Destructor.  More... | |
Protected Attributes | |
| std::string | m_name | 
| std::pair< unsigned int,  std::string >  | m_srid | 
| std::string | m_unitName | 
Private Attributes | |
| Datum * | m_datum | 
| Datum.  More... | |
| double | m_primem | 
| The meridian used to take longitude measurements from.  More... | |
A Geographic Coordinate System (GEOGCS).
A Geographic Coordinate System is a coordinate system based on latitude and longitude.
Definition at line 51 of file GeographicCoordinateSystem.h.
| te::srs::GeographicCoordinateSystem::GeographicCoordinateSystem | ( | const std::string & | name = "",  | 
        
| const std::string | unitName = "degree",  | 
        ||
| double | primem = 0.0  | 
        ||
| ) | 
Constructor with parameters.
| name | The geographic coordinate system name. | 
| unitName | The name of the angular unit for this GEOGCS. | 
| primem | The meridian used to take longitude measurements from. | 
Definition at line 36 of file GeographicCoordinateSystem.cpp.
| te::srs::GeographicCoordinateSystem::~GeographicCoordinateSystem | ( | ) | 
Destructor.
Definition at line 44 of file GeographicCoordinateSystem.cpp.
| const te::srs::Datum * te::srs::GeographicCoordinateSystem::getDatum | ( | ) | const | 
Returns the associated Datum.
Definition at line 57 of file GeographicCoordinateSystem.cpp.
      
  | 
  inherited | 
Returns the SRS name.
Definition at line 43 of file SpatialReferenceSystem.cpp.
| double te::srs::GeographicCoordinateSystem::getPrimem | ( | ) | const | 
Returns the meridian used to take longitude measurements from.
Definition at line 62 of file GeographicCoordinateSystem.cpp.
      
  | 
  inherited | 
Returns SRS integer identification.
| id | To return the unique id (output); | 
| authName | To return the authority responsible for the id (output). | 
Definition at line 58 of file SpatialReferenceSystem.cpp.
      
  | 
  inherited | 
Returns the SRS unit name.
Definition at line 53 of file SpatialReferenceSystem.cpp.
      
  | 
  virtual | 
Returns an OGC's WKT representation for the SRS.
The WKT definition based on document "OpenGIS Implementation Specification: Coordinate Transformation Services Revision 1.00 - pages 18 and 19.
Implements te::srs::SpatialReferenceSystem.
Definition at line 72 of file GeographicCoordinateSystem.cpp.
References te::common::UnitsOfMeasureManager::find(), and te::common::Singleton< UnitsOfMeasureManager >::getInstance().
      
  | 
  virtual | 
Returns true is a geographic coordinate system and false otherwise.
Implements te::srs::SpatialReferenceSystem.
Definition at line 115 of file GeographicCoordinateSystem.cpp.
| void te::srs::GeographicCoordinateSystem::setDatum | ( | Datum * | datum | ) | 
Sets the associated Datum.
| datum | Pointer to GEOGCS datum. Do not pass null. Class takes the pointer ownership. | 
Definition at line 49 of file GeographicCoordinateSystem.cpp.
      
  | 
  inherited | 
Sets the SRS name.
| name | the SRS name. | 
Definition at line 38 of file SpatialReferenceSystem.cpp.
| void te::srs::GeographicCoordinateSystem::setPrimem | ( | double | primen | ) | 
Sets the meridian used to take longitude measurements from.
| primen | The meridian used to take longitude measurements from. | 
Definition at line 67 of file GeographicCoordinateSystem.cpp.
      
  | 
  inherited | 
Sets the SRS integer identification.
Spatial reference systems can be referred to using a SRID integer, given by an authority, such as the EPSG codes defined by the International Association of Oil and Gas Producers.
| id | The SRS integer identifier. | 
| authName | The authority responsible for the identifier. Default "EPSG". | 
Definition at line 64 of file SpatialReferenceSystem.cpp.
      
  | 
  inherited | 
Sets the SRS unit name.
| name | the SRS unit name. | 
Definition at line 48 of file SpatialReferenceSystem.cpp.
      
  | 
  private | 
Definition at line 93 of file GeographicCoordinateSystem.h.
      
  | 
  protectedinherited | 
Definition at line 112 of file SpatialReferenceSystem.h.
      
  | 
  private | 
The meridian used to take longitude measurements from.
Definition at line 94 of file GeographicCoordinateSystem.h.
      
  | 
  protectedinherited | 
Definition at line 115 of file SpatialReferenceSystem.h.
      
  | 
  protectedinherited | 
Definition at line 113 of file SpatialReferenceSystem.h.