All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::srs::ProjectedCoordinateSystem Class Reference

A Projected Coordinate System (PROJCS). More...

#include <ProjectedCoordinateSystem.h>

Inheritance diagram for te::srs::ProjectedCoordinateSystem:
te::srs::SpatialReferenceSystem

Public Member Functions

const GeographicCoordinateSystemgetGeographicCoordinateSystem () 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 > &params)
 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

GeographicCoordinateSystemm_geogcs
 
std::map< std::string, double > m_params
 
std::string m_projection
 

Detailed Description

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.

Constructor & Destructor Documentation

te::srs::ProjectedCoordinateSystem::ProjectedCoordinateSystem ( const std::string &  name = "",
const std::string &  unitName = "",
GeographicCoordinateSystem geogcs = 0,
const std::string &  projName = "" 
)

Constructor with parameters.

Parameters
nameProjected coordinate system name (default empty string).
unitNameThe name of the linear unit associated to the PROJCS (default empty string).
geogcsPointer to the underlying geographic coordinate system (default null). Class takes pointer ownership.
projNameThe 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.

Member Function Documentation

const te::srs::GeographicCoordinateSystem * te::srs::ProjectedCoordinateSystem::getGeographicCoordinateSystem ( ) const

Returns the underlying Geographic Coordinate Reference System.

Returns
A pointer to Geographic Coordinate Reference System. Class maintains pointer ownership.

Definition at line 61 of file ProjectedCoordinateSystem.cpp.

const std::string & te::srs::SpatialReferenceSystem::getName ( ) const
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.

void te::srs::SpatialReferenceSystem::getSRID ( int &  id,
std::string &  authName 
) const
inherited

Returns SRS integer identification.

Parameters
idTo return the unique id (output);
authNameTo return the authority responsible for the id (output).

Definition at line 58 of file SpatialReferenceSystem.cpp.

const std::string & te::srs::SpatialReferenceSystem::getUnitName ( ) const
inherited

Returns the SRS unit name.

Definition at line 53 of file SpatialReferenceSystem.cpp.

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.

Definition at line 91 of file ProjectedCoordinateSystem.cpp.

References te::common::UnitsOfMeasureManager::find(), and te::common::Singleton< UnitsOfMeasureManager >::getInstance().

bool te::srs::ProjectedCoordinateSystem::isGeographic ( ) const
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.

Parameters
geogcsA pointer to Geographic Coordinate Reference System. Do not pass null. Class takes pointer ownership.

Definition at line 52 of file ProjectedCoordinateSystem.cpp.

void te::srs::SpatialReferenceSystem::setName ( const std::string &  name)
inherited

Sets the SRS name.

Parameters
namethe 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.

Parameters
paramsThe projection parameters.

Definition at line 79 of file ProjectedCoordinateSystem.cpp.

void te::srs::ProjectedCoordinateSystem::setProjection ( const std::string &  projname)

Sets the map projection name.

Parameters
projnameThe map projection name.

Definition at line 67 of file ProjectedCoordinateSystem.cpp.

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
idThe SRS integer identifier.
authNameThe authority responsible for the identifier. Default "EPSG".

Definition at line 64 of file SpatialReferenceSystem.cpp.

void te::srs::SpatialReferenceSystem::setUnitName ( const std::string &  name)
inherited

Sets the SRS unit name.

Parameters
namethe SRS unit name.

Definition at line 48 of file SpatialReferenceSystem.cpp.

Member Data Documentation

GeographicCoordinateSystem* te::srs::ProjectedCoordinateSystem::m_geogcs
private

Definition at line 110 of file ProjectedCoordinateSystem.h.

std::string te::srs::SpatialReferenceSystem::m_name
protectedinherited

Definition at line 112 of file SpatialReferenceSystem.h.

std::map<std::string, double> te::srs::ProjectedCoordinateSystem::m_params
private

Definition at line 112 of file ProjectedCoordinateSystem.h.

std::string te::srs::ProjectedCoordinateSystem::m_projection
private

Definition at line 111 of file ProjectedCoordinateSystem.h.

std::pair<unsigned int,std::string> te::srs::SpatialReferenceSystem::m_srid
protectedinherited

Definition at line 115 of file SpatialReferenceSystem.h.

std::string te::srs::SpatialReferenceSystem::m_unitName
protectedinherited

Definition at line 113 of file SpatialReferenceSystem.h.


The documentation for this class was generated from the following files: