99 m_geoCS->setPrimem(primem);
104 m_srs->setUnitName(name);
112 m_datum->setName(name);
117 m_sevenParams[0] = dx;
122 m_sevenParams[1] = dy;
127 m_sevenParams[2] = dz;
132 m_sevenParams[3] = ex;
137 m_sevenParams[4] = ey;
142 m_sevenParams[5] = ez;
147 m_sevenParams[6] = ppm;
152 m_datum->setToWGS84Params(m_sevenParams);
157 m_authorityName = name;
162 m_authorityCode = code;
167 m_ellps->setName(name);
172 m_ellps->setRadium(rad);
177 m_ellps->setInverseFlattening(invflat);
182 m_projCS->setProjection(name);
187 m_parameter.first = name;
192 m_parameter.second = value;
193 m_params.insert(m_parameter);
203 m_axis.second = value;
204 m_axes.insert(m_axis);
209 m_datum->setEllipsoid(m_ellps);
215 m_geoCS->setDatum(m_datum);
221 if(!m_authorityName.empty() && !m_authorityCode.empty())
223 m_geoCS->setSRID(atoi(m_authorityCode.c_str()), m_authorityName);
226 m_authorityName.clear();
227 m_authorityCode.clear();
236 m_projCS->setGeographicCoordinateSystem(m_geoCS);
242 if(!m_authorityName.empty() && !m_authorityCode.empty())
244 m_projCS->setSRID(atoi(m_authorityCode.c_str()), m_authorityName);
246 m_authorityName.clear();
247 m_authorityCode.clear();
250 m_projCS->setParameters(m_params);
void endProjectedCoordinateSystem()
void reset()
This method resets the Action class to original state.
A geodetic datum defines a reference to measure Earth's surface.
void setSpheroidName(const std::string &name)
This file contains the support to represent a geodetic datum.
A Geographic Coordinate System (GEOGCS).
void setPrimeMeridian(const double &primem)
void setAuthorityName(const std::string &name)
void setAxisValue(const std::string &value)
void setConversionFactor(const double &f)
void setEx(const double &ex)
void createGeographicCoordinateSystem()
A Spatial Reference System, also known as a Coordinate System.
std::vector< double > m_sevenParams
void setUnitName(const std::string &name)
This file contains the structs necessary to represent a ProjectedCoordinateSystem.
void setPPM(const double &ppm)
void setEz(const double &ez)
void setDx(const double &dx)
void setProjectionName(const std::string &name)
void setDy(const double &dy)
void setDatumName(const std::string &name)
WKTActions()
Default constructor.
void setAxisName(const std::string &name)
void setSemiMajorAxis(const double &rad)
This file contains the structs necessary to represent a GeographicCoordinateSystem.
A Projected Coordinate System (PROJCS).
A reference ellipsoid is an approximation of the Earth's surface as a squashed sphere.
SpatialReferenceSystem * getSRS()
It returns the SRS generated by the parser process.
void setParameter(const std::string &name)
void endGeographicCoordinateSystem()
void setName(const std::string &name)
void setParameterValue(const double &value)
void setEy(const double &ey)
This file contains the structs necessary to model an Ellipsoid.
void setDz(const double &dz)
void createProjectedCoordinateSystem()
void setAuthorityCode(const std::string &code)
void setInverseFlattening(const double &invflat)