A Spatial Reference System, also known as a Coordinate System.
More...
#include <SpatialReferenceSystem.h>
|
const std::string & | getName () const |
| Returns the SRS name.
|
|
void | getSRID (int &id, std::string &authName) const |
| Returns SRS integer identification.
|
|
const std::string & | getUnitName () const |
| Returns the SRS unit name.
|
|
virtual std::string | getWKT () const =0 |
| Returns an OGC's WKT representation for the SRS.
|
|
virtual bool | isGeographic () const =0 |
| Returns true is a geographic coordinate system and false otherwise.
|
|
void | setName (const std::string &name) |
| Sets the SRS name.
|
|
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.
|
|
| SpatialReferenceSystem (const std::string &name="", const std::string &unitName="") |
| Default constructor.
|
|
virtual | ~SpatialReferenceSystem () |
| Virtual destructor.
|
|
A Spatial Reference System, also known as a Coordinate System.
A spatial reference system (SRS) or coordinate reference system (CRS) is a coordinate-based local, regional or global system used to locate geographical entities.
Definition at line 49 of file SpatialReferenceSystem.h.
◆ SpatialReferenceSystem()
te::srs::SpatialReferenceSystem::SpatialReferenceSystem |
( |
const std::string & |
name = "" , |
|
|
const std::string & |
unitName = "" |
|
) |
| |
Default constructor.
- Parameters
-
name | The SRS name. Default empty string. |
unitName | The SRS unit name. Default empty string; |
◆ ~SpatialReferenceSystem()
virtual te::srs::SpatialReferenceSystem::~SpatialReferenceSystem |
( |
| ) |
|
|
virtual |
◆ getName()
const std::string & te::srs::SpatialReferenceSystem::getName |
( |
| ) |
const |
◆ getSRID()
void te::srs::SpatialReferenceSystem::getSRID |
( |
int & |
id, |
|
|
std::string & |
authName |
|
) |
| const |
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 |
Returns the SRS unit name.
◆ getWKT()
virtual std::string te::srs::SpatialReferenceSystem::getWKT |
( |
| ) |
const |
|
pure virtual |
◆ isGeographic()
virtual bool te::srs::SpatialReferenceSystem::isGeographic |
( |
| ) |
const |
|
pure virtual |
◆ setName()
void te::srs::SpatialReferenceSystem::setName |
( |
const std::string & |
name | ) |
|
Sets the SRS name.
- Parameters
-
◆ setSRID()
void te::srs::SpatialReferenceSystem::setSRID |
( |
int |
id, |
|
|
const std::string & |
authName = "EPSG" |
|
) |
| |
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 | ) |
|
Sets the SRS unit name.
- Parameters
-
◆ m_name
std::string te::srs::SpatialReferenceSystem::m_name |
|
protected |
◆ m_srid
std::pair<unsigned int,std::string> te::srs::SpatialReferenceSystem::m_srid |
|
protected |
◆ m_unitName
std::string te::srs::SpatialReferenceSystem::m_unitName |
|
protected |
The documentation for this class was generated from the following file: