21 #ifndef GEOS_OP_POLYGONIZE_EDGERING_H
22 #define GEOS_OP_POLYGONIZE_EDGERING_H
24 #include <geos/export.h>
30 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
39 class CoordinateSequence;
41 class GeometryFactory;
44 namespace planargraph {
51 namespace polygonize {
61 typedef std::vector<const planargraph::DirectedEdge*> DeList;
68 typedef std::vector<geom::Geometry*> GeomVect;
104 std::vector<EdgeRing*> *shellList);
211 #endif // GEOS_OP_POLYGONIZE_EDGERING_H
geom::LinearRing * getRingOwnership()
Returns this ring as a LinearRing, or null if an Exception occurs while creating it (such as a topolo...
Represents a directed edge in a PlanarGraph.
Definition: planargraph/DirectedEdge.h:46
bool isHole()
Tests whether this ring is a hole.
static EdgeRing * findEdgeRingContaining(EdgeRing *testEr, std::vector< EdgeRing * > *shellList)
Find the innermost enclosing shell EdgeRing containing the argument EdgeRing, if any.
void addHole(geom::LinearRing *hole)
Adds a hole to the polygon formed by this ring.
geom::LineString * getLineString()
Gets the coordinates for this ring as a LineString.
Models an OGC SFS LinearRing.
Definition: LinearRing.h:57
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
static bool isInList(const geom::Coordinate &pt, const geom::CoordinateSequence *pts)
Tests whether a given point is in an array of points. Uses a value-based test.
geom::LinearRing * getRingInternal()
Returns this ring as a LinearRing, or null if an Exception occurs while creating it (such as a topolo...
geom::Polygon * getPolygon()
Computes the Polygon formed by this ring and any contained holes.
void add(const planargraph::DirectedEdge *de)
Adds a DirectedEdge which is known to form part of this ring.
Represents a linear polygon, which may include holes.
Definition: Polygon.h:67
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
static const geom::Coordinate & ptNotInList(const geom::CoordinateSequence *testPts, const geom::CoordinateSequence *pts)
Finds a point in a list of points which is not contained in another list of points.
Represents a ring of PolygonizeDirectedEdge which form a ring of a polygon. The ring may be either an...
Definition: operation/polygonize/EdgeRing.h:57
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:59
bool isValid()
Tests if the LinearRing ring formed by this edge ring is topologically valid.
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:67
Definition: LineString.h:70