A Projected Coordinate System (PROJCS).
More...
#include <ProjectedCoordinateSystem.h>
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.
- 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). |
te::srs::ProjectedCoordinateSystem::~ProjectedCoordinateSystem |
( |
| ) |
|
Returns the underlying Geographic Coordinate Reference System.
- Returns
- A pointer to Geographic Coordinate Reference System. Class maintains pointer ownership.
const std::string& te::srs::SpatialReferenceSystem::getName |
( |
| ) |
const |
|
inherited |
const std::map<std::string, double>& te::srs::ProjectedCoordinateSystem::getParameters |
( |
| ) |
const |
Returns the list of projection parameters.
const std::string& te::srs::ProjectedCoordinateSystem::getProjection |
( |
| ) |
const |
Returns the map projection name.
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). |
const std::string& te::srs::SpatialReferenceSystem::getUnitName |
( |
| ) |
const |
|
inherited |
Returns the SRS unit name.
std::string te::srs::ProjectedCoordinateSystem::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.
bool te::srs::ProjectedCoordinateSystem::isGeographic |
( |
| ) |
const |
|
virtual |
Sets the underlying Geographic Coordinate Reference System.
- Parameters
-
geogcs | A pointer to Geographic Coordinate Reference System. Do not pass null. Class takes pointer ownership. |
void te::srs::SpatialReferenceSystem::setName |
( |
const std::string & |
name | ) |
|
|
inherited |
Sets the SRS name.
- Parameters
-
void te::srs::ProjectedCoordinateSystem::setParameters |
( |
const std::map< std::string, double > & |
params | ) |
|
Sets the projection parameters.
- Parameters
-
params | The projection parameters. |
void te::srs::ProjectedCoordinateSystem::setProjection |
( |
const std::string & |
projname | ) |
|
Sets the map projection name.
- Parameters
-
projname | The map projection name. |
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". |
void te::srs::SpatialReferenceSystem::setUnitName |
( |
const std::string & |
name | ) |
|
|
inherited |
Sets the SRS unit name.
- Parameters
-
std::string te::srs::SpatialReferenceSystem::m_name |
|
protectedinherited |
std::map<std::string, double> te::srs::ProjectedCoordinateSystem::m_params |
|
private |
std::string te::srs::ProjectedCoordinateSystem::m_projection |
|
private |
std::pair<unsigned int,std::string> te::srs::SpatialReferenceSystem::m_srid |
|
protectedinherited |
std::string te::srs::SpatialReferenceSystem::m_unitName |
|
protectedinherited |
The documentation for this class was generated from the following file: