A Spatial Reference System, also known as a Coordinate System.
More...
#include <SpatialReferenceSystem.h>
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.
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; |
virtual te::srs::SpatialReferenceSystem::~SpatialReferenceSystem |
( |
| ) |
|
|
virtual |
const std::string& te::srs::SpatialReferenceSystem::getName |
( |
| ) |
const |
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). |
const std::string& te::srs::SpatialReferenceSystem::getUnitName |
( |
| ) |
const |
Returns the SRS unit name.
virtual std::string te::srs::SpatialReferenceSystem::getWKT |
( |
| ) |
const |
|
pure virtual |
virtual bool te::srs::SpatialReferenceSystem::isGeographic |
( |
| ) |
const |
|
pure virtual |
void te::srs::SpatialReferenceSystem::setName |
( |
const std::string & |
name | ) |
|
Sets the SRS name.
- Parameters
-
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". |
void te::srs::SpatialReferenceSystem::setUnitName |
( |
const std::string & |
name | ) |
|
Sets the SRS unit name.
- Parameters
-
std::string te::srs::SpatialReferenceSystem::m_name |
|
protected |
std::pair<unsigned int,std::string> te::srs::SpatialReferenceSystem::m_srid |
|
protected |
std::string te::srs::SpatialReferenceSystem::m_unitName |
|
protected |
The documentation for this class was generated from the following file: