21#ifndef GEOS_OP_POLYGONIZE_EDGERING_H
22#define GEOS_OP_POLYGONIZE_EDGERING_H
24#include <geos/export.h>
30#pragma warning(disable: 4251)
57class GEOS_DLL EdgeRing {
61 typedef std::vector<const planargraph::DirectedEdge*> DeList;
68 typedef std::vector<geom::Geometry*> GeomVect;
104 std::vector<EdgeRing*> *shellList);
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:59
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition GeometryFactory.h:67
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:167
Definition LineString.h:70
Models an OGC SFS LinearRing.
Definition LinearRing.h:57
Represents a linear polygon, which may include holes.
Definition Polygon.h:67
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...
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 add(const planargraph::DirectedEdge *de)
Adds a DirectedEdge which is known to form part of this ring.
geom::LinearRing * getRingOwnership()
Returns this ring as a LinearRing, or null if an Exception occurs while creating it (such as a topolo...
void addHole(geom::LinearRing *hole)
Adds a hole to the polygon formed by this ring.
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.
geom::LineString * getLineString()
Gets the coordinates for this ring as a LineString.
geom::Polygon * getPolygon()
Computes the Polygon formed by this ring and any contained holes.
bool isValid()
Tests if the LinearRing ring formed by this edge ring is topologically valid.
Represents a directed edge in a PlanarGraph.
Definition planargraph/DirectedEdge.h:46
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Provides classes for implementing operations on geometries.
Definition IndexedNestedRingTester.h:40
Contains classes to implement a planar graph data structure.
Definition LineMergeDirectedEdge.h:32
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25