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.

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

Destructor.

Member Function Documentation

void te::srs::WKTActions::createDatum ( )
void te::srs::WKTActions::createGeographicCoordinateSystem ( )
void te::srs::WKTActions::createProjectedCoordinateSystem ( )
void te::srs::WKTActions::createSpheroid ( )
void te::srs::WKTActions::endDatum ( )
void te::srs::WKTActions::endGeographicCoordinateSystem ( )
void te::srs::WKTActions::endProjectedCoordinateSystem ( )
void te::srs::WKTActions::endSpheroid ( )
void te::srs::WKTActions::endToWGS84 ( )
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.

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.

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

void te::srs::WKTActions::setAuthorityCode ( const std::string &  code)
void te::srs::WKTActions::setAuthorityName ( const std::string &  name)
void te::srs::WKTActions::setAxisName ( const std::string &  name)
void te::srs::WKTActions::setAxisValue ( const std::string &  value)
void te::srs::WKTActions::setConversionFactor ( const double &  f)
void te::srs::WKTActions::setDatumName ( const std::string &  name)
void te::srs::WKTActions::setDx ( const double &  dx)
void te::srs::WKTActions::setDy ( const double &  dy)
void te::srs::WKTActions::setDz ( const double &  dz)
void te::srs::WKTActions::setEx ( const double &  ex)
void te::srs::WKTActions::setEy ( const double &  ey)
void te::srs::WKTActions::setEz ( const double &  ez)
void te::srs::WKTActions::setInverseFlattening ( const double &  invflat)
void te::srs::WKTActions::setName ( const std::string &  name)
void te::srs::WKTActions::setParameter ( const std::string &  name)
void te::srs::WKTActions::setParameterValue ( const double &  value)
void te::srs::WKTActions::setPPM ( const double &  ppm)
void te::srs::WKTActions::setPrimeMeridian ( const double &  primem)
void te::srs::WKTActions::setProjectionName ( const std::string &  name)
void te::srs::WKTActions::setSemiMajorAxis ( const double &  rad)
void te::srs::WKTActions::setSpheroidName ( const std::string &  name)
void te::srs::WKTActions::setUnitName ( const std::string &  name)

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.

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