A Projected Coordinate System (PROJCS). More...
#include <ProjectedCoordinateSystem.h>
Public Member Functions | |
| const GeographicCoordinateSystem * | getGeographicCoordinateSystem () const |
| Returns the underlying Geographic Coordinate Reference System. More... | |
| const std::string & | getName () const |
| Returns the SRS name. More... | |
| const std::map< std::string, double > & | getParameters () const |
| Returns the list of projection parameters. More... | |
| const std::string & | getProjection () const |
| Returns the map projection name. 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... | |
| ProjectedCoordinateSystem (const std::string &name="", const std::string &unitName="", GeographicCoordinateSystem *geogcs=0, const std::string &projName="") | |
| Constructor with parameters. More... | |
| void | setGeographicCoordinateSystem (GeographicCoordinateSystem *geogcs) |
| Sets the underlying Geographic Coordinate Reference System. More... | |
| void | setName (const std::string &name) |
| Sets the SRS name. More... | |
| void | setParameters (const std::map< std::string, double > ¶ms) |
| Sets the projection parameters. More... | |
| void | setProjection (const std::string &projname) |
| Sets the map projection name. 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... | |
| ~ProjectedCoordinateSystem () | |
| Destructor. More... | |
Protected Attributes | |
| std::string | m_name |
| std::pair< unsigned int, std::string > | m_srid |
| std::string | m_unitName |
Private Attributes | |
| GeographicCoordinateSystem * | m_geogcs |
| std::map< std::string, double > | m_params |
| std::string | m_projection |
A Projected Coordinate System (PROJCS).
A coordinate reference system that is based on a geographic CRS and then uses a map projection to convert the coordinates to a plane.
Definition at line 54 of file ProjectedCoordinateSystem.h.
| te::srs::ProjectedCoordinateSystem::ProjectedCoordinateSystem | ( | const std::string & | name = "", |
| const std::string & | unitName = "", |
||
| GeographicCoordinateSystem * | geogcs = 0, |
||
| const std::string & | projName = "" |
||
| ) |
Constructor with parameters.
| name | Projected coordinate system name (default empty string). |
| unitName | The name of the linear unit associated to the PROJCS (default empty string). |
| geogcs | Pointer to the underlying geographic coordinate system (default null). Class takes pointer ownership. |
| projName | The name of the map projection (default empty string). |
Definition at line 37 of file ProjectedCoordinateSystem.cpp.
| te::srs::ProjectedCoordinateSystem::~ProjectedCoordinateSystem | ( | ) |
Destructor.
Definition at line 46 of file ProjectedCoordinateSystem.cpp.
| const te::srs::GeographicCoordinateSystem * te::srs::ProjectedCoordinateSystem::getGeographicCoordinateSystem | ( | ) | const |
Returns the underlying Geographic Coordinate Reference System.
Definition at line 61 of file ProjectedCoordinateSystem.cpp.
|
inherited |
Returns the SRS name.
Definition at line 43 of file SpatialReferenceSystem.cpp.
| const std::map< std::string, double > & te::srs::ProjectedCoordinateSystem::getParameters | ( | ) | const |
Returns the list of projection parameters.
Definition at line 85 of file ProjectedCoordinateSystem.cpp.
| const std::string & te::srs::ProjectedCoordinateSystem::getProjection | ( | ) | const |
Returns the map projection name.
Definition at line 73 of file ProjectedCoordinateSystem.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 91 of file ProjectedCoordinateSystem.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 142 of file ProjectedCoordinateSystem.cpp.
| void te::srs::ProjectedCoordinateSystem::setGeographicCoordinateSystem | ( | GeographicCoordinateSystem * | geogcs | ) |
Sets the underlying Geographic Coordinate Reference System.
| geogcs | A pointer to Geographic Coordinate Reference System. Do not pass null. Class takes pointer ownership. |
Definition at line 52 of file ProjectedCoordinateSystem.cpp.
|
inherited |
Sets the SRS name.
| name | the SRS name. |
Definition at line 38 of file SpatialReferenceSystem.cpp.
| void te::srs::ProjectedCoordinateSystem::setParameters | ( | const std::map< std::string, double > & | params | ) |
Sets the projection parameters.
| params | The projection parameters. |
Definition at line 79 of file ProjectedCoordinateSystem.cpp.
| void te::srs::ProjectedCoordinateSystem::setProjection | ( | const std::string & | projname | ) |
Sets the map projection name.
| projname | The map projection name. |
Definition at line 67 of file ProjectedCoordinateSystem.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 110 of file ProjectedCoordinateSystem.h.
|
protectedinherited |
Definition at line 112 of file SpatialReferenceSystem.h.
|
private |
Definition at line 112 of file ProjectedCoordinateSystem.h.
|
private |
Definition at line 111 of file ProjectedCoordinateSystem.h.
|
protectedinherited |
Definition at line 115 of file SpatialReferenceSystem.h.
|
protectedinherited |
Definition at line 113 of file SpatialReferenceSystem.h.