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 srs/WKTActions.h.

Constructor & Destructor Documentation

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

Default constructor.

Definition at line 37 of file srs/WKTActions.cpp.

References m_sevenParams, and ~WKTActions().

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

Destructor.

Referenced by WKTActions().

Member Function Documentation

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

Definition at line 80 of file srs/WKTActions.cpp.

References m_datum.

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

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

Definition at line 74 of file srs/WKTActions.cpp.

References m_geoCS, and m_srs.

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

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

Definition at line 68 of file srs/WKTActions.cpp.

References m_projCS, and m_srs.

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

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

Definition at line 85 of file srs/WKTActions.cpp.

References m_ellps.

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

void te::srs::WKTActions::endDatum ( )
void te::srs::WKTActions::endSpheroid ( )
void te::srs::WKTActions::endToWGS84 ( )
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 252 of file srs/WKTActions.cpp.

References m_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.

Definition at line 51 of file srs/WKTActions.cpp.

References m_datum, m_ellps, m_geoCS, m_projCS, and m_srs.

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

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

Definition at line 158 of file srs/WKTActions.cpp.

References m_authorityCode.

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

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

Definition at line 153 of file srs/WKTActions.cpp.

References m_authorityName.

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

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

Definition at line 194 of file srs/WKTActions.cpp.

References m_axis.

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

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

Definition at line 199 of file srs/WKTActions.cpp.

References m_axes, and m_axis.

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

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)

Definition at line 113 of file srs/WKTActions.cpp.

References dx, and m_sevenParams.

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

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

Definition at line 118 of file srs/WKTActions.cpp.

References m_sevenParams.

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

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

Definition at line 123 of file srs/WKTActions.cpp.

References m_sevenParams.

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

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

Definition at line 128 of file srs/WKTActions.cpp.

References m_sevenParams.

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

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

Definition at line 133 of file srs/WKTActions.cpp.

References m_sevenParams.

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

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

Definition at line 138 of file srs/WKTActions.cpp.

References m_sevenParams.

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

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)

Definition at line 183 of file srs/WKTActions.cpp.

References m_parameter.

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

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

Definition at line 188 of file srs/WKTActions.cpp.

References m_parameter, and m_params.

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

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

Definition at line 143 of file srs/WKTActions.cpp.

References m_sevenParams.

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

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
std::string te::srs::WKTActions::m_authorityName
private
std::map<std::string, std::string> te::srs::WKTActions::m_axes
private

Definition at line 158 of file srs/WKTActions.h.

Referenced by setAxisValue().

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

Definition at line 157 of file srs/WKTActions.h.

Referenced by setAxisName(), and setAxisValue().

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

Definition at line 149 of file srs/WKTActions.h.

Referenced by createDatum(), endDatum(), endSpheroid(), endToWGS84(), reset(), and setDatumName().

Ellipsoid* te::srs::WKTActions::m_ellps
private
GeographicCoordinateSystem* te::srs::WKTActions::m_geoCS
private
std::pair<std::string, double> te::srs::WKTActions::m_parameter
private

Definition at line 154 of file srs/WKTActions.h.

Referenced by setParameter(), and setParameterValue().

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

Definition at line 155 of file srs/WKTActions.h.

Referenced by endProjectedCoordinateSystem(), and setParameterValue().

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

Definition at line 152 of file srs/WKTActions.h.

Referenced by endToWGS84(), setDx(), setDy(), setDz(), setEx(), setEy(), setEz(), setPPM(), and WKTActions().


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