22#include <geos/algorithm/LineIntersector.h>
23#include <geos/algorithm/BoundaryNodeRule.h>
24#include <geos/geom/CoordinateArraySequence.h>
25#include <geos/noding/SegmentIntersector.h>
31class BasicSegmentString;
34class BoundaryNodeRule;
43class GeometryCollection;
100 bool isClosedEndpointsInInterior =
true;
101 bool isFindAllLocations =
false;
102 bool isSimpleResult =
false;
103 std::vector<geom::Coordinate> nonSimplePts;
104 bool computed =
false;
133 static std::vector<std::unique_ptr<geos::geom::CoordinateArraySequence>>
136 static std::vector<std::unique_ptr<noding::SegmentString>>
137 createSegmentStrings(std::vector<std::unique_ptr<geos::geom::CoordinateArraySequence>>& seqs);
144 bool isClosedEndpointsInInterior;
145 bool isFindAll =
false;
147 std::vector<geom::Coordinate>& intersectionPts;
155 bool findIntersection(
170 bool isIntersectionEndpoint(
182 std::size_t intersectionVertexIndex(
187 NonSimpleIntersectionFinder(
188 bool p_isClosedEndpointsInInterior,
190 std::vector<geom::Coordinate>& p_intersectionPts)
191 : isClosedEndpointsInInterior(p_isClosedEndpointsInInterior)
192 , isFindAll(p_isFindAll)
193 , intersectionPts(p_intersectionPts)
201 bool hasIntersection()
const;
203 void processIntersections(
207 bool isDone()
const override;
224 :
IsSimpleOp(geom, algorithm::BoundaryNodeRule::getBoundaryRuleMod2())
235 , isClosedEndpointsInInterior(! p_boundaryNodeRule.isInBoundary(2))
236 , isFindAllLocations(false)
249 if (!geom)
return false;
250 return isSimple(*geom);
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
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
Definition: MultiPoint.h:51
Processes possible intersections detected by a Noder.
Definition: noding/SegmentIntersector.h:45
An interface for classes which represent a sequence of contiguous line segments.
Definition: SegmentString.h:45
Definition: IsSimpleOp.h:95
geom::Coordinate getNonSimpleLocation()
void setFindAllLocations(bool isFindAll)
IsSimpleOp(const geom::Geometry &geom)
Definition: IsSimpleOp.h:223
static bool isSimple(const geom::Geometry &geom)
geom::Coordinate getNonSimpleLocation(const geom::Geometry &geom)
const std::vector< geom::Coordinate > & getNonSimpleLocations()
IsSimpleOp(const geom::Geometry &geom, const algorithm::BoundaryNodeRule &p_boundaryNodeRule)
Definition: IsSimpleOp.h:233
Basic namespace for all GEOS functionalities.
Definition: geos.h:39