24#include <geos/export.h>
25#include <geos/geomgraph/Label.h>
26#include <geos/geom/CoordinateArraySequence.h>
27#include <geos/geom/LinearRing.h>
36#pragma warning(disable: 4251)
60 friend std::ostream& operator<< (std::ostream& os,
const EdgeRing& er);
110 int getMaxNodeDegree();
121 testInvariant()
const
131 for(
const auto& hole : holes) {
133 assert(hole->getShell() ==
this);
141 DirectedEdge* startDe;
143 const geom::GeometryFactory* geometryFactory;
148 void mergeLabel(
const Label& deLabel);
164 void addPoints(
Edge* edge,
bool isForward,
bool isFirstEdge);
167 std::vector<std::unique_ptr<EdgeRing>>
holes;
174 std::vector<DirectedEdge*> edges;
176 std::vector<geom::Coordinate> pts;
182 std::unique_ptr<geom::LinearRing> ring;
189 void computeMaxNodeDegree();
193std::ostream& operator<< (std::ostream& os,
const EdgeRing& er);
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:66
Models an OGC SFS LinearRing. A LinearRing is a LineString which is both closed and simple.
Definition: LinearRing.h:55
A directed EdgeEnd.
Definition: geomgraph/DirectedEdge.h:42
Definition: geomgraph/EdgeRing.h:57
std::unique_ptr< geom::Polygon > toPolygon(const geom::GeometryFactory *geometryFactory)
bool containsPoint(const geom::Coordinate &p)
std::vector< std::unique_ptr< EdgeRing > > holes
a list of EdgeRings which are holes in this EdgeRing
Definition: geomgraph/EdgeRing.h:167
void mergeLabel(const Label &deLabel, uint8_t geomIndex)
Merge the RHS label from a DirectedEdge into the label for this EdgeRing.
std::vector< DirectedEdge * > & getEdges()
void computePoints(DirectedEdge *newStart)
geom::LinearRing * getLinearRing()
Definition: geomgraph/Edge.h:63
A Label indicates the topological relationship of a component of a topology graph to a given Geometry...
Definition: Label.h:57
Basic namespace for all GEOS functionalities.
Definition: geos.h:39