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

A class that implements the Grammar Rules for well known text (WKT) format for Spatial Reference Systems. More...

#include <WKTActions.h>

Public Member Functions

void reset ()
 This method resets the Action class to original state. More...
 
Constructor

Initilizer methods.

 WKTActions ()
 Default constructor. More...
 
 ~WKTActions ()
 Destructor. More...
 
Actions methods.

Actions methods to WKT SRS parser.

void createProjectedCoordinateSystem ()
 
void createGeographicCoordinateSystem ()
 
void createDatum ()
 
void createSpheroid ()
 
void setName (const std::string &name)
 
void setPrimeMeridian (const double &primem)
 
void setUnitName (const std::string &name)
 
void setConversionFactor (const double &f)
 
void setDatumName (const std::string &name)
 
void setDx (const double &dx)
 
void setDy (const double &dy)
 
void setDz (const double &dz)
 
void setEx (const double &ex)
 
void setEy (const double &ey)
 
void setEz (const double &ez)
 
void setPPM (const double &ppm)
 
void endToWGS84 ()
 
void setAuthorityName (const std::string &name)
 
void setAuthorityCode (const std::string &code)
 
void setSpheroidName (const std::string &name)
 
void setSemiMajorAxis (const double &rad)
 
void setInverseFlattening (const double &invflat)
 
void setProjectionName (const std::string &name)
 
void setParameter (const std::string &name)
 
void setParameterValue (const double &value)
 
void setAxisName (const std::string &name)
 
void setAxisValue (const std::string &value)
 
void endSpheroid ()
 
void endDatum ()
 
void endGeographicCoordinateSystem ()
 
void endProjectedCoordinateSystem ()
 
Access method.

Method to access the SRS generated.

SpatialReferenceSystemgetSRS ()
 It returns the SRS generated by the parser process. More...
 

Private Attributes

std::string m_authorityCode
 
std::string m_authorityName
 
std::map< std::string,
std::string > 
m_axes
 
std::pair< std::string,
std::string > 
m_axis
 
Datumm_datum
 
Ellipsoidm_ellps
 
GeographicCoordinateSystemm_geoCS
 
std::pair< std::string, double > m_parameter
 
std::map< std::string, double > m_params
 
ProjectedCoordinateSystemm_projCS
 
std::vector< double > m_sevenParams
 
SpatialReferenceSystemm_srs
 

Detailed Description

A class that implements the Grammar Rules for well known text (WKT) format for Spatial Reference Systems.

Definition at line 53 of file WKTActions.h.

Constructor & Destructor Documentation

te::srs::WKTActions::WKTActions ( )

Default constructor.

Definition at line 37 of file WKTActions.cpp.

References m_sevenParams.

te::srs::WKTActions::~WKTActions ( )

Destructor.

Definition at line 49 of file WKTActions.cpp.

Member Function Documentation

void te::srs::WKTActions::createDatum ( )

Definition at line 82 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initDatum().

void te::srs::WKTActions::createGeographicCoordinateSystem ( )
void te::srs::WKTActions::createProjectedCoordinateSystem ( )
void te::srs::WKTActions::createSpheroid ( )

Definition at line 87 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initSpheroid().

void te::srs::WKTActions::endDatum ( )

Definition at line 213 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initDatum().

void te::srs::WKTActions::endGeographicCoordinateSystem ( )
void te::srs::WKTActions::endProjectedCoordinateSystem ( )
void te::srs::WKTActions::endSpheroid ( )

Definition at line 207 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initSpheroid().

void te::srs::WKTActions::endToWGS84 ( )

Definition at line 150 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initToWGS84().

te::srs::SpatialReferenceSystem * te::srs::WKTActions::getSRS ( )

It returns the SRS generated by the parser process.

Note
The caller of this method will take the ownership of the SRS.

Definition at line 254 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::getSRS().

void te::srs::WKTActions::reset ( )

This method resets the Action class to original state.

Note
Should be called case the parser processing faill.
Basically, it is responsable to free the memory.

Definition at line 53 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::reset().

void te::srs::WKTActions::setAuthorityCode ( const std::string &  code)

Definition at line 160 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initAuthority().

void te::srs::WKTActions::setAuthorityName ( const std::string &  name)

Definition at line 155 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initAuthority().

void te::srs::WKTActions::setAxisName ( const std::string &  name)

Definition at line 196 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initQuotedNames().

void te::srs::WKTActions::setAxisValue ( const std::string &  value)

Definition at line 201 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initQuotedNames().

void te::srs::WKTActions::setConversionFactor ( const double &  f)

Definition at line 107 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initDoubleValues().

void te::srs::WKTActions::setDatumName ( const std::string &  name)

Definition at line 110 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initQuotedNames().

void te::srs::WKTActions::setDx ( const double &  dx)

Definition at line 115 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initToWGS84().

void te::srs::WKTActions::setDy ( const double &  dy)

Definition at line 120 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initToWGS84().

void te::srs::WKTActions::setDz ( const double &  dz)

Definition at line 125 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initToWGS84().

void te::srs::WKTActions::setEx ( const double &  ex)

Definition at line 130 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initToWGS84().

void te::srs::WKTActions::setEy ( const double &  ey)

Definition at line 135 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initToWGS84().

void te::srs::WKTActions::setEz ( const double &  ez)

Definition at line 140 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initToWGS84().

void te::srs::WKTActions::setInverseFlattening ( const double &  invflat)

Definition at line 175 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initDoubleValues().

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

Definition at line 92 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initQuotedNames().

void te::srs::WKTActions::setParameter ( const std::string &  name)

Definition at line 185 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initQuotedNames().

void te::srs::WKTActions::setParameterValue ( const double &  value)

Definition at line 190 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initDoubleValues().

void te::srs::WKTActions::setPPM ( const double &  ppm)

Definition at line 145 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initToWGS84().

void te::srs::WKTActions::setPrimeMeridian ( const double &  primem)

Definition at line 97 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initDoubleValues().

void te::srs::WKTActions::setProjectionName ( const std::string &  name)

Definition at line 180 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initQuotedNames().

void te::srs::WKTActions::setSemiMajorAxis ( const double &  rad)

Definition at line 170 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initDoubleValues().

void te::srs::WKTActions::setSpheroidName ( const std::string &  name)

Definition at line 165 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initQuotedNames().

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

Definition at line 102 of file WKTActions.cpp.

Referenced by te::srs::WKTParser< Iterator >::initQuotedNames().

Member Data Documentation

std::string te::srs::WKTActions::m_authorityCode
private

Definition at line 161 of file WKTActions.h.

std::string te::srs::WKTActions::m_authorityName
private

Definition at line 160 of file WKTActions.h.

std::map<std::string, std::string> te::srs::WKTActions::m_axes
private

Definition at line 158 of file WKTActions.h.

std::pair<std::string, std::string> te::srs::WKTActions::m_axis
private

Definition at line 157 of file WKTActions.h.

Datum* te::srs::WKTActions::m_datum
private

Definition at line 149 of file WKTActions.h.

Ellipsoid* te::srs::WKTActions::m_ellps
private

Definition at line 150 of file WKTActions.h.

GeographicCoordinateSystem* te::srs::WKTActions::m_geoCS
private

Definition at line 147 of file WKTActions.h.

std::pair<std::string, double> te::srs::WKTActions::m_parameter
private

Definition at line 154 of file WKTActions.h.

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

Definition at line 155 of file WKTActions.h.

ProjectedCoordinateSystem* te::srs::WKTActions::m_projCS
private

Definition at line 146 of file WKTActions.h.

std::vector<double> te::srs::WKTActions::m_sevenParams
private

Definition at line 152 of file WKTActions.h.

Referenced by WKTActions().

SpatialReferenceSystem* te::srs::WKTActions::m_srs
private

Definition at line 144 of file WKTActions.h.


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