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. | |
| SpatialReferenceSystem * | getSRS () |
| 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 |
| Datum * | m_datum |
| Ellipsoid * | m_ellps |
| GeographicCoordinateSystem * | m_geoCS |
| std::pair< std::string, double > | m_parameter |
| std::map< std::string, double > | m_params |
| ProjectedCoordinateSystem * | m_projCS |
| std::vector< double > | m_sevenParams |
| SpatialReferenceSystem * | m_srs |
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.
| te::srs::WKTActions::WKTActions | ( | ) |
Default constructor.
Definition at line 37 of file srs/WKTActions.cpp.
References m_sevenParams, and ~WKTActions().
|
default |
Destructor.
Referenced by WKTActions().
| 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 | ( | ) |
Definition at line 211 of file srs/WKTActions.cpp.
References m_datum, m_geoCS, and te::srs::GeographicCoordinateSystem::setDatum().
Referenced by te::srs::WKTParser< Iterator >::initDatum().
| void te::srs::WKTActions::endGeographicCoordinateSystem | ( | ) |
Definition at line 217 of file srs/WKTActions.cpp.
References m_authorityCode, m_authorityName, m_geoCS, m_projCS, m_srs, te::srs::ProjectedCoordinateSystem::setGeographicCoordinateSystem(), and te::srs::SpatialReferenceSystem::setSRID().
Referenced by te::srs::WKTParser< Iterator >::initSpatialReferenceSystems().
| void te::srs::WKTActions::endProjectedCoordinateSystem | ( | ) |
Definition at line 238 of file srs/WKTActions.cpp.
References m_authorityCode, m_authorityName, m_params, m_projCS, te::srs::ProjectedCoordinateSystem::setParameters(), and te::srs::SpatialReferenceSystem::setSRID().
Referenced by te::srs::WKTParser< Iterator >::initSpatialReferenceSystems().
| void te::srs::WKTActions::endSpheroid | ( | ) |
Definition at line 205 of file srs/WKTActions.cpp.
References m_datum, m_ellps, and te::srs::Datum::setEllipsoid().
Referenced by te::srs::WKTParser< Iterator >::initSpheroid().
| void te::srs::WKTActions::endToWGS84 | ( | ) |
Definition at line 148 of file srs/WKTActions.cpp.
References m_datum, m_sevenParams, and te::srs::Datum::setToWGS84Params().
Referenced by te::srs::WKTParser< Iterator >::initToWGS84().
| te::srs::SpatialReferenceSystem * te::srs::WKTActions::getSRS | ( | ) |
It returns the SRS generated by the parser process.
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.
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 | ) |
Definition at line 105 of file srs/WKTActions.cpp.
Referenced by te::srs::WKTParser< Iterator >::initDoubleValues().
| void te::srs::WKTActions::setDatumName | ( | const std::string & | name | ) |
Definition at line 108 of file srs/WKTActions.cpp.
References m_datum, and te::srs::Datum::setName().
Referenced by te::srs::WKTParser< Iterator >::initQuotedNames().
| 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 | ) |
Definition at line 173 of file srs/WKTActions.cpp.
References m_ellps, and te::srs::Ellipsoid::setInverseFlattening().
Referenced by te::srs::WKTParser< Iterator >::initDoubleValues().
| void te::srs::WKTActions::setName | ( | const std::string & | name | ) |
Definition at line 90 of file srs/WKTActions.cpp.
References m_srs, and te::srs::SpatialReferenceSystem::setName().
Referenced by te::srs::WKTParser< Iterator >::initQuotedNames().
| 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 | ) |
Definition at line 95 of file srs/WKTActions.cpp.
References m_geoCS, and te::srs::GeographicCoordinateSystem::setPrimem().
Referenced by te::srs::WKTParser< Iterator >::initDoubleValues().
| void te::srs::WKTActions::setProjectionName | ( | const std::string & | name | ) |
Definition at line 178 of file srs/WKTActions.cpp.
References m_projCS, and te::srs::ProjectedCoordinateSystem::setProjection().
Referenced by te::srs::WKTParser< Iterator >::initQuotedNames().
| void te::srs::WKTActions::setSemiMajorAxis | ( | const double & | rad | ) |
Definition at line 168 of file srs/WKTActions.cpp.
References m_ellps, and te::srs::Ellipsoid::setRadium().
Referenced by te::srs::WKTParser< Iterator >::initDoubleValues().
| void te::srs::WKTActions::setSpheroidName | ( | const std::string & | name | ) |
Definition at line 163 of file srs/WKTActions.cpp.
References m_ellps, and te::srs::Ellipsoid::setName().
Referenced by te::srs::WKTParser< Iterator >::initQuotedNames().
| void te::srs::WKTActions::setUnitName | ( | const std::string & | name | ) |
Definition at line 100 of file srs/WKTActions.cpp.
References m_srs, and te::srs::SpatialReferenceSystem::setUnitName().
Referenced by te::srs::WKTParser< Iterator >::initQuotedNames().
|
private |
Definition at line 161 of file srs/WKTActions.h.
Referenced by endGeographicCoordinateSystem(), endProjectedCoordinateSystem(), and setAuthorityCode().
|
private |
Definition at line 160 of file srs/WKTActions.h.
Referenced by endGeographicCoordinateSystem(), endProjectedCoordinateSystem(), and setAuthorityName().
|
private |
Definition at line 158 of file srs/WKTActions.h.
Referenced by setAxisValue().
|
private |
Definition at line 157 of file srs/WKTActions.h.
Referenced by setAxisName(), and setAxisValue().
|
private |
Definition at line 149 of file srs/WKTActions.h.
Referenced by createDatum(), endDatum(), endSpheroid(), endToWGS84(), reset(), and setDatumName().
|
private |
Definition at line 150 of file srs/WKTActions.h.
Referenced by createSpheroid(), endSpheroid(), reset(), setInverseFlattening(), setSemiMajorAxis(), and setSpheroidName().
|
private |
Definition at line 147 of file srs/WKTActions.h.
Referenced by createGeographicCoordinateSystem(), endDatum(), endGeographicCoordinateSystem(), reset(), and setPrimeMeridian().
|
private |
Definition at line 154 of file srs/WKTActions.h.
Referenced by setParameter(), and setParameterValue().
|
private |
Definition at line 155 of file srs/WKTActions.h.
Referenced by endProjectedCoordinateSystem(), and setParameterValue().
|
private |
Definition at line 146 of file srs/WKTActions.h.
Referenced by createProjectedCoordinateSystem(), endGeographicCoordinateSystem(), endProjectedCoordinateSystem(), reset(), and setProjectionName().
|
private |
Definition at line 152 of file srs/WKTActions.h.
Referenced by endToWGS84(), setDx(), setDy(), setDz(), setEx(), setEy(), setEz(), setPPM(), and WKTActions().
|
private |
Definition at line 144 of file srs/WKTActions.h.
Referenced by createGeographicCoordinateSystem(), createProjectedCoordinateSystem(), endGeographicCoordinateSystem(), getSRS(), reset(), setName(), and setUnitName().