A Geographic Coordinate System (GEOGCS).
More...
#include <GeographicCoordinateSystem.h>
|
| GeographicCoordinateSystem (const std::string &name="", const std::string unitName="degree", double primem=0.0) |
| Constructor with parameters.
|
|
const Datum * | getDatum () const |
| Returns the associated Datum.
|
|
const std::string & | getName () const |
| Returns the SRS name.
|
|
double | getPrimem () const |
| Returns the meridian used to take longitude measurements from.
|
|
void | getSRID (int &id, std::string &authName) const |
| Returns SRS integer identification.
|
|
const std::string & | getUnitName () const |
| Returns the SRS unit name.
|
|
std::string | getWKT () const |
| Returns an OGC's WKT representation for the SRS.
|
|
bool | isGeographic () const |
| Returns true is a geographic coordinate system and false otherwise.
|
|
void | setDatum (Datum *datum) |
| Sets the associated Datum.
|
|
void | setName (const std::string &name) |
| Sets the SRS name.
|
|
void | setPrimem (double primen) |
| Sets the meridian used to take longitude measurements from.
|
|
void | setSRID (int id, const std::string &authName="EPSG") |
| Sets the SRS integer identification.
|
|
void | setUnitName (const std::string &name) |
| Sets the SRS unit name.
|
|
| ~GeographicCoordinateSystem () |
| Destructor.
|
|
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.
◆ GeographicCoordinateSystem()
te::srs::GeographicCoordinateSystem::GeographicCoordinateSystem |
( |
const std::string & |
name = "" , |
|
|
const std::string |
unitName = "degree" , |
|
|
double |
primem = 0.0 |
|
) |
| |
Constructor with parameters.
- 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. |
◆ ~GeographicCoordinateSystem()
te::srs::GeographicCoordinateSystem::~GeographicCoordinateSystem |
( |
| ) |
|
◆ getDatum()
const Datum * te::srs::GeographicCoordinateSystem::getDatum |
( |
| ) |
const |
Returns the associated Datum.
- Returns
- A pointer to the GEOGCS datum. Class maintains the pointer ownership.
◆ getName()
const std::string & te::srs::SpatialReferenceSystem::getName |
( |
| ) |
const |
|
inherited |
◆ getPrimem()
double te::srs::GeographicCoordinateSystem::getPrimem |
( |
| ) |
const |
Returns the meridian used to take longitude measurements from.
◆ getSRID()
void te::srs::SpatialReferenceSystem::getSRID |
( |
int & |
id, |
|
|
std::string & |
authName |
|
) |
| const |
|
inherited |
Returns SRS integer identification.
- Parameters
-
id | To return the unique id (output); |
authName | To return the authority responsible for the id (output). |
◆ getUnitName()
const std::string & te::srs::SpatialReferenceSystem::getUnitName |
( |
| ) |
const |
|
inherited |
Returns the SRS unit name.
◆ getWKT()
std::string te::srs::GeographicCoordinateSystem::getWKT |
( |
| ) |
const |
|
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.
◆ isGeographic()
bool te::srs::GeographicCoordinateSystem::isGeographic |
( |
| ) |
const |
|
virtual |
◆ setDatum()
void te::srs::GeographicCoordinateSystem::setDatum |
( |
Datum * |
datum | ) |
|
Sets the associated Datum.
- Parameters
-
datum | Pointer to GEOGCS datum. Do not pass null. Class takes the pointer ownership. |
◆ setName()
void te::srs::SpatialReferenceSystem::setName |
( |
const std::string & |
name | ) |
|
|
inherited |
Sets the SRS name.
- Parameters
-
◆ setPrimem()
void te::srs::GeographicCoordinateSystem::setPrimem |
( |
double |
primen | ) |
|
Sets the meridian used to take longitude measurements from.
- Parameters
-
primen | The meridian used to take longitude measurements from. |
◆ setSRID()
void te::srs::SpatialReferenceSystem::setSRID |
( |
int |
id, |
|
|
const std::string & |
authName = "EPSG" |
|
) |
| |
|
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.
- Parameters
-
id | The SRS integer identifier. |
authName | The authority responsible for the identifier. Default "EPSG". |
◆ setUnitName()
void te::srs::SpatialReferenceSystem::setUnitName |
( |
const std::string & |
name | ) |
|
|
inherited |
Sets the SRS unit name.
- Parameters
-
◆ m_datum
Datum* te::srs::GeographicCoordinateSystem::m_datum |
|
private |
◆ m_name
std::string te::srs::SpatialReferenceSystem::m_name |
|
protectedinherited |
◆ m_primem
double te::srs::GeographicCoordinateSystem::m_primem |
|
private |
◆ m_srid
std::pair<unsigned int,std::string> te::srs::SpatialReferenceSystem::m_srid |
|
protectedinherited |
◆ m_unitName
std::string te::srs::SpatialReferenceSystem::m_unitName |
|
protectedinherited |
The documentation for this class was generated from the following file: