24#include <geos/export.h>
26#include <unordered_map>
30#include <geos/geom/Coordinate.h>
31#include <geos/geom/CoordinateSequence.h>
32#include <geos/geomgraph/PlanarGraph.h>
33#include <geos/geomgraph/index/SegmentIntersector.h>
34#include <geos/geom/LineString.h>
38#pragma warning(disable: 4251)
48class GeometryCollection;
54class BoundaryNodeRule;
60class EdgeSetIntersector;
72 using PlanarGraph::add;
87 std::unordered_map<const geom::LineString*, Edge*> lineEdgeMap;
93 bool useBoundaryDeterminationRule;
104 std::unique_ptr< geom::CoordinateSequence > boundaryPoints;
106 std::unique_ptr< std::vector<Node*> > boundaryNodes;
108 bool hasTooFewPointsVar;
139 void insertBoundaryPoint(uint8_t p_argIndex,
const geom::Coordinate& coord);
141 void addSelfIntersectionNodes(uint8_t p_argIndex);
150 void addSelfIntersectionNode(uint8_t p_argIndex,
159 static bool isInBoundary(
int boundaryCount);
182 nodes->getBoundaryNodes(
static_cast<uint8_t
>(argIndex), bdyNodes);
185 std::vector<Node*>* getBoundaryNodes();
192 void computeSplitEdges(std::vector<Edge*>* edgelist);
194 void addEdge(
Edge* e);
212 std::unique_ptr<index::SegmentIntersector>
215 bool computeRingSelfNodes,
218 return computeSelfNodes(*li, computeRingSelfNodes, env);
223 std::unique_ptr<index::SegmentIntersector> computeSelfNodes(
227 std::unique_ptr<index::SegmentIntersector> computeEdgeIntersections(
GeometryGraph* g,
231 std::vector<Edge*>* getEdges();
233 bool hasTooFewPoints();
238 getBoundaryNodeRule()
const
240 return boundaryNodeRule;
An interface for rules which determine whether node points which are in boundaries of lineal geometry...
Definition: BoundaryNodeRule.h:50
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition: LineIntersector.h:50
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:44
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition: Envelope.h:58
Represents a collection of heterogeneous Geometry objects.
Definition: GeometryCollection.h:52
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
Definition: LineString.h:66
Models an OGC SFS LinearRing. A LinearRing is a LineString which is both closed and simple.
Definition: LinearRing.h:55
Represents a linear polygon, which may include holes.
Definition: Polygon.h:61
Definition: geomgraph/Edge.h:63
A GeometryGraph is a graph that models a given Geometry.
Definition: GeometryGraph.h:71
geom::CoordinateSequence * getBoundaryPoints()
Returned object is owned by this GeometryGraph.
std::unique_ptr< index::SegmentIntersector > computeSelfNodes(algorithm::LineIntersector *li, bool computeRingSelfNodes, const geom::Envelope *env=nullptr)
Compute self-nodes, taking advantage of the Geometry type to minimize the number of intersection test...
Definition: GeometryGraph.h:213
void getBoundaryNodes(std::vector< Node * > &bdyNodes)
Returned object is owned by this GeometryGraph.
Definition: GeometryGraph.h:180
Represents a directed graph which is embeddable in a planar surface.
Definition: geomgraph/PlanarGraph.h:72
virtual Edge * findEdge(const geom::Coordinate &p0, const geom::Coordinate &p1)
Returns the edge whose first two coordinates are p0 and p1.
An EdgeSetIntersector computes all the intersections between the edges in the set.
Definition: EdgeSetIntersector.h:40
Location
Constants representing the location of a point relative to a geometry.
Definition: Location.h:32
Basic namespace for all GEOS functionalities.
Definition: geos.h:39