A class that implements the Grammar Rules for well known text (WKT) format for Geometry. 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 geometry parser. | |
void | createPoint (const boost::fusion::vector2< double, double > &c) |
void | createPointZ (const boost::fusion::vector3< double, double, double > &c) |
void | createPointM (const boost::fusion::vector3< double, double, double > &c) |
void | createPointZM (const boost::fusion::vector4< double, double, double, double > &c) |
void | createPoint () |
void | createPointZ () |
void | createPointM () |
void | createPointZM () |
void | createLine () |
void | createLineZ () |
void | createLineM () |
void | createLineZM () |
void | createLinearRing () |
void | createLinearRingZ () |
void | createLinearRingM () |
void | createLinearRingZM () |
void | createPolygon () |
void | createPolygonZ () |
void | createPolygonM () |
void | createPolygonZM () |
void | createMultiPoint () |
void | createMultiPointZ () |
void | createMultiPointM () |
void | createMultiPointZM () |
void | createMultiLineString () |
void | createMultiLineStringZ () |
void | createMultiLineStringM () |
void | createMultiLineStringZM () |
void | createMultiPolygon () |
void | createMultiPolygonZ () |
void | createMultiPolygonM () |
void | createMultiPolygonZM () |
void | createPolyhedralSurface () |
void | createPolyhedralSurfaceZ () |
void | createPolyhedralSurfaceM () |
void | createPolyhedralSurfaceZM () |
void | createTIN () |
void | createTINZ () |
void | createTINM () |
void | createTINZM () |
void | createTriangle () |
void | createTriangleZ () |
void | createTriangleM () |
void | createTriangleZM () |
void | createGeometryCollection () |
void | createGeometryCollectionZ () |
void | createGeometryCollectionM () |
void | createGeometryCollectionZM () |
void | endGeometry () |
void | end () |
Access method. | |
Method to access the geometry generated. | |
Geometry * | getGeometry () |
It returns the geometry generated by the parser process. More... | |
Private Member Functions | |
Auxiliaries methods. | |
Auxiliaries methods to WKT geometry parser. | |
void | buildLine (LineString *l) |
void | buildPolygon (const GeomType &t) |
void | buildPolygon (Polygon *p) |
void | buildMultiPoint (const GeomType &t) |
void | buildMultiLineString (const GeomType &t) |
void | buildMultiPolygon (const GeomType &t) |
void | buildPolyhedralSurface (PolyhedralSurface *ps) |
void | buildGeometryCollection (const GeomType &t) |
Private Attributes | |
Geometry * | m_g |
std::vector< Geometry * > | m_geometries |
std::vector< LineString * > | m_lines |
std::vector< Point * > | m_points |
std::vector< Polygon * > | m_polygons |
A class that implements the Grammar Rules for well known text (WKT) format for Geometry.
Definition at line 54 of file WKTActions.h.
te::gm::WKTActions::WKTActions | ( | ) |
Default constructor.
Definition at line 46 of file WKTActions.cpp.
te::gm::WKTActions::~WKTActions | ( | ) |
Destructor.
Definition at line 50 of file WKTActions.cpp.
|
private |
Definition at line 454 of file WKTActions.cpp.
References te::gm::GeometryCollection::setGeometryN().
|
private |
Definition at line 363 of file WKTActions.cpp.
References te::common::FreeContents(), te::gm::LineString::getNPoints(), and te::gm::LineString::setPointN().
|
private |
Definition at line 417 of file WKTActions.cpp.
References te::gm::GeometryCollection::setGeometryN().
|
private |
Definition at line 404 of file WKTActions.cpp.
References te::gm::GeometryCollection::setGeometryN().
|
private |
Definition at line 430 of file WKTActions.cpp.
References te::gm::GeometryCollection::setGeometryN().
|
private |
Definition at line 389 of file WKTActions.cpp.
References te::gm::CurvePolygon::setRingN().
|
private |
Definition at line 376 of file WKTActions.cpp.
References te::gm::CurvePolygon::setRingN().
|
private |
Definition at line 443 of file WKTActions.cpp.
References te::gm::PolyhedralSurface::setPatchN().
void te::gm::WKTActions::createGeometryCollection | ( | ) |
Definition at line 330 of file WKTActions.cpp.
References te::gm::GeometryCollectionType.
Referenced by te::gm::WKTParser< Iterator >::initGeometryCollection().
void te::gm::WKTActions::createGeometryCollectionM | ( | ) |
Definition at line 340 of file WKTActions.cpp.
References te::gm::GeometryCollectionMType.
Referenced by te::gm::WKTParser< Iterator >::initGeometryCollection().
void te::gm::WKTActions::createGeometryCollectionZ | ( | ) |
Definition at line 335 of file WKTActions.cpp.
References te::gm::GeometryCollectionZType.
Referenced by te::gm::WKTParser< Iterator >::initGeometryCollection().
void te::gm::WKTActions::createGeometryCollectionZM | ( | ) |
Definition at line 345 of file WKTActions.cpp.
References te::gm::GeometryCollectionZMType.
Referenced by te::gm::WKTParser< Iterator >::initGeometryCollection().
void te::gm::WKTActions::createLine | ( | ) |
Definition at line 126 of file WKTActions.cpp.
References te::gm::LineStringType.
Referenced by te::gm::WKTParser< Iterator >::initLine().
void te::gm::WKTActions::createLinearRing | ( | ) |
Definition at line 150 of file WKTActions.cpp.
References te::gm::LineStringType.
Referenced by te::gm::WKTParser< Iterator >::initLine().
void te::gm::WKTActions::createLinearRingM | ( | ) |
Definition at line 162 of file WKTActions.cpp.
References te::gm::LineStringMType.
Referenced by te::gm::WKTParser< Iterator >::initLine().
void te::gm::WKTActions::createLinearRingZ | ( | ) |
Definition at line 156 of file WKTActions.cpp.
References te::gm::LineStringZType.
Referenced by te::gm::WKTParser< Iterator >::initLine().
void te::gm::WKTActions::createLinearRingZM | ( | ) |
Definition at line 168 of file WKTActions.cpp.
References te::gm::LineStringZMType.
Referenced by te::gm::WKTParser< Iterator >::initLine().
void te::gm::WKTActions::createLineM | ( | ) |
Definition at line 138 of file WKTActions.cpp.
References te::gm::LineStringMType.
Referenced by te::gm::WKTParser< Iterator >::initLine().
void te::gm::WKTActions::createLineZ | ( | ) |
Definition at line 132 of file WKTActions.cpp.
References te::gm::LineStringZType.
Referenced by te::gm::WKTParser< Iterator >::initLine().
void te::gm::WKTActions::createLineZM | ( | ) |
Definition at line 144 of file WKTActions.cpp.
References te::gm::LineStringZMType.
Referenced by te::gm::WKTParser< Iterator >::initLine().
void te::gm::WKTActions::createMultiLineString | ( | ) |
Definition at line 218 of file WKTActions.cpp.
References te::gm::MultiLineStringType.
Referenced by te::gm::WKTParser< Iterator >::initMultiLine().
void te::gm::WKTActions::createMultiLineStringM | ( | ) |
Definition at line 228 of file WKTActions.cpp.
References te::gm::MultiLineStringMType.
Referenced by te::gm::WKTParser< Iterator >::initMultiLine().
void te::gm::WKTActions::createMultiLineStringZ | ( | ) |
Definition at line 223 of file WKTActions.cpp.
References te::gm::MultiLineStringZType.
Referenced by te::gm::WKTParser< Iterator >::initMultiLine().
void te::gm::WKTActions::createMultiLineStringZM | ( | ) |
Definition at line 233 of file WKTActions.cpp.
References te::gm::MultiLineStringZMType.
Referenced by te::gm::WKTParser< Iterator >::initMultiLine().
void te::gm::WKTActions::createMultiPoint | ( | ) |
Definition at line 198 of file WKTActions.cpp.
References te::gm::MultiPointType.
Referenced by te::gm::WKTParser< Iterator >::initMultiPoint().
void te::gm::WKTActions::createMultiPointM | ( | ) |
Definition at line 208 of file WKTActions.cpp.
References te::gm::MultiPointMType.
Referenced by te::gm::WKTParser< Iterator >::initMultiPoint().
void te::gm::WKTActions::createMultiPointZ | ( | ) |
Definition at line 203 of file WKTActions.cpp.
References te::gm::MultiPointZType.
Referenced by te::gm::WKTParser< Iterator >::initMultiPoint().
void te::gm::WKTActions::createMultiPointZM | ( | ) |
Definition at line 213 of file WKTActions.cpp.
References te::gm::MultiPointZMType.
Referenced by te::gm::WKTParser< Iterator >::initMultiPoint().
void te::gm::WKTActions::createMultiPolygon | ( | ) |
Definition at line 238 of file WKTActions.cpp.
References te::gm::MultiPolygonType.
Referenced by te::gm::WKTParser< Iterator >::initMultiPolygon().
void te::gm::WKTActions::createMultiPolygonM | ( | ) |
Definition at line 248 of file WKTActions.cpp.
References te::gm::MultiPolygonMType.
Referenced by te::gm::WKTParser< Iterator >::initMultiPolygon().
void te::gm::WKTActions::createMultiPolygonZ | ( | ) |
Definition at line 243 of file WKTActions.cpp.
References te::gm::MultiPolygonZType.
Referenced by te::gm::WKTParser< Iterator >::initMultiPolygon().
void te::gm::WKTActions::createMultiPolygonZM | ( | ) |
Definition at line 253 of file WKTActions.cpp.
References te::gm::MultiPolygonZMType.
Referenced by te::gm::WKTParser< Iterator >::initMultiPolygon().
void te::gm::WKTActions::createPoint | ( | const boost::fusion::vector2< double, double > & | c | ) |
Definition at line 70 of file WKTActions.cpp.
void te::gm::WKTActions::createPoint | ( | ) |
Definition at line 98 of file WKTActions.cpp.
Referenced by te::gm::WKTParser< Iterator >::initCoordinates(), and te::gm::WKTParser< Iterator >::initPoint().
void te::gm::WKTActions::createPointM | ( | const boost::fusion::vector3< double, double, double > & | c | ) |
Definition at line 84 of file WKTActions.cpp.
void te::gm::WKTActions::createPointM | ( | ) |
Definition at line 112 of file WKTActions.cpp.
Referenced by te::gm::WKTParser< Iterator >::initCoordinates(), and te::gm::WKTParser< Iterator >::initPoint().
void te::gm::WKTActions::createPointZ | ( | const boost::fusion::vector3< double, double, double > & | c | ) |
Definition at line 77 of file WKTActions.cpp.
void te::gm::WKTActions::createPointZ | ( | ) |
Definition at line 105 of file WKTActions.cpp.
Referenced by te::gm::WKTParser< Iterator >::initCoordinates(), and te::gm::WKTParser< Iterator >::initPoint().
void te::gm::WKTActions::createPointZM | ( | const boost::fusion::vector4< double, double, double, double > & | c | ) |
Definition at line 91 of file WKTActions.cpp.
void te::gm::WKTActions::createPointZM | ( | ) |
Definition at line 119 of file WKTActions.cpp.
Referenced by te::gm::WKTParser< Iterator >::initCoordinates(), and te::gm::WKTParser< Iterator >::initPoint().
void te::gm::WKTActions::createPolygon | ( | ) |
Definition at line 174 of file WKTActions.cpp.
References te::gm::PolygonType.
Referenced by te::gm::WKTParser< Iterator >::initPolygon().
void te::gm::WKTActions::createPolygonM | ( | ) |
Definition at line 186 of file WKTActions.cpp.
References te::gm::PolygonMType.
Referenced by te::gm::WKTParser< Iterator >::initPolygon().
void te::gm::WKTActions::createPolygonZ | ( | ) |
Definition at line 180 of file WKTActions.cpp.
References te::gm::PolygonZType.
Referenced by te::gm::WKTParser< Iterator >::initPolygon().
void te::gm::WKTActions::createPolygonZM | ( | ) |
Definition at line 192 of file WKTActions.cpp.
References te::gm::PolygonZMType.
Referenced by te::gm::WKTParser< Iterator >::initPolygon().
void te::gm::WKTActions::createPolyhedralSurface | ( | ) |
Definition at line 258 of file WKTActions.cpp.
References te::gm::PolyhedralSurfaceType.
Referenced by te::gm::WKTParser< Iterator >::initPolyhedralSurface().
void te::gm::WKTActions::createPolyhedralSurfaceM | ( | ) |
Definition at line 270 of file WKTActions.cpp.
References te::gm::PolyhedralSurfaceMType.
Referenced by te::gm::WKTParser< Iterator >::initPolyhedralSurface().
void te::gm::WKTActions::createPolyhedralSurfaceZ | ( | ) |
Definition at line 264 of file WKTActions.cpp.
References te::gm::PolyhedralSurfaceZType.
Referenced by te::gm::WKTParser< Iterator >::initPolyhedralSurface().
void te::gm::WKTActions::createPolyhedralSurfaceZM | ( | ) |
Definition at line 276 of file WKTActions.cpp.
References te::gm::PolyhedralSurfaceZMType.
Referenced by te::gm::WKTParser< Iterator >::initPolyhedralSurface().
void te::gm::WKTActions::createTIN | ( | ) |
Definition at line 282 of file WKTActions.cpp.
References te::gm::TINType.
Referenced by te::gm::WKTParser< Iterator >::initTIN().
void te::gm::WKTActions::createTINM | ( | ) |
Definition at line 294 of file WKTActions.cpp.
References te::gm::TINMType.
Referenced by te::gm::WKTParser< Iterator >::initTIN().
void te::gm::WKTActions::createTINZ | ( | ) |
Definition at line 288 of file WKTActions.cpp.
References te::gm::TINZType.
Referenced by te::gm::WKTParser< Iterator >::initTIN().
void te::gm::WKTActions::createTINZM | ( | ) |
Definition at line 300 of file WKTActions.cpp.
References te::gm::TINZMType.
Referenced by te::gm::WKTParser< Iterator >::initTIN().
void te::gm::WKTActions::createTriangle | ( | ) |
Definition at line 306 of file WKTActions.cpp.
References te::gm::TriangleType.
Referenced by te::gm::WKTParser< Iterator >::initTriangle().
void te::gm::WKTActions::createTriangleM | ( | ) |
Definition at line 318 of file WKTActions.cpp.
References te::gm::TriangleMType.
Referenced by te::gm::WKTParser< Iterator >::initTriangle().
void te::gm::WKTActions::createTriangleZ | ( | ) |
Definition at line 312 of file WKTActions.cpp.
References te::gm::TriangleZType.
Referenced by te::gm::WKTParser< Iterator >::initTriangle().
void te::gm::WKTActions::createTriangleZM | ( | ) |
Definition at line 324 of file WKTActions.cpp.
References te::gm::TriangleZMType.
Referenced by te::gm::WKTParser< Iterator >::initTriangle().
void te::gm::WKTActions::end | ( | ) |
Definition at line 358 of file WKTActions.cpp.
Referenced by te::gm::WKTParser< Iterator >::WKTParser().
void te::gm::WKTActions::endGeometry | ( | ) |
Definition at line 350 of file WKTActions.cpp.
Referenced by te::gm::WKTParser< Iterator >::initGeometries(), te::gm::WKTParser< Iterator >::initGeometriesM(), te::gm::WKTParser< Iterator >::initGeometriesZ(), and te::gm::WKTParser< Iterator >::initGeometriesZM().
te::gm::Geometry * te::gm::WKTActions::getGeometry | ( | ) |
It returns the geometry generated by the parser process.
Definition at line 466 of file WKTActions.cpp.
Referenced by te::gm::WKTParser< Iterator >::getGeometry().
void te::gm::WKTActions::reset | ( | ) |
This method resets the Action class to original state.
Definition at line 53 of file WKTActions.cpp.
References te::common::FreeContents().
Referenced by te::gm::WKTParser< Iterator >::reset().
|
private |
Definition at line 227 of file WKTActions.h.
|
private |
Definition at line 232 of file WKTActions.h.
|
private |
Definition at line 230 of file WKTActions.h.
|
private |
Definition at line 229 of file WKTActions.h.
|
private |
Definition at line 231 of file WKTActions.h.