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

◆ ProjectedCoordinateSystem()

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).

◆ ~ProjectedCoordinateSystem()

te::srs::ProjectedCoordinateSystem::~ProjectedCoordinateSystem ( )

Destructor.

Member Function Documentation

◆ getGeographicCoordinateSystem()

const 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.

◆ getName()

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

Returns the SRS name.

◆ getParameters()

const std::map<std::string, double>& te::srs::ProjectedCoordinateSystem::getParameters ( ) const

Returns the list of projection parameters.

◆ getProjection()

const std::string& te::srs::ProjectedCoordinateSystem::getProjection ( ) const

Returns the map projection name.

◆ getSRID()

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).

◆ getUnitName()

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

Returns the SRS unit name.

◆ getWKT()

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.

◆ isGeographic()

bool te::srs::ProjectedCoordinateSystem::isGeographic ( ) const
virtual

Returns true is a geographic coordinate system and false otherwise.

Implements te::srs::SpatialReferenceSystem.

◆ setGeographicCoordinateSystem()

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.

◆ setName()

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

Sets the SRS name.

Parameters
namethe SRS name.

◆ setParameters()

void te::srs::ProjectedCoordinateSystem::setParameters ( const std::map< std::string, double > &  params)

Sets the projection parameters.

Parameters
paramsThe projection parameters.

◆ setProjection()

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

Sets the map projection name.

Parameters
projnameThe map projection name.

◆ setSRID()

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".

◆ setUnitName()

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

Sets the SRS unit name.

Parameters
namethe SRS unit name.

Member Data Documentation

◆ m_geogcs

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

Definition at line 110 of file ProjectedCoordinateSystem.h.

◆ m_name

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

Definition at line 112 of file SpatialReferenceSystem.h.

◆ m_params

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

Definition at line 112 of file ProjectedCoordinateSystem.h.

◆ m_projection

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

Definition at line 111 of file ProjectedCoordinateSystem.h.

◆ m_srid

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

Definition at line 115 of file SpatialReferenceSystem.h.

◆ m_unitName

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 file: