22 #include <geos/algorithm/LineIntersector.h>
23 #include <geos/algorithm/BoundaryNodeRule.h>
24 #include <geos/noding/SegmentIntersector.h>
30 class BasicSegmentString;
38 class MultiLineString;
42 class GeometryCollection;
99 bool isClosedEndpointsInInterior =
true;
100 bool isFindAllLocations =
false;
101 bool isSimpleResult =
false;
102 std::vector<geom::CoordinateXY> nonSimplePts;
103 bool computed =
false;
132 static std::vector<std::unique_ptr<geos::geom::CoordinateSequence>>
135 static std::vector<std::unique_ptr<noding::SegmentString>>
136 createSegmentStrings(std::vector<std::unique_ptr<geos::geom::CoordinateSequence>>& seqs);
143 bool isClosedEndpointsInInterior;
144 bool isFindAll =
false;
146 std::vector<geom::CoordinateXY>& intersectionPts;
154 bool findIntersection(
157 const geom::CoordinateXY& p00,
const geom::CoordinateXY& p01,
158 const geom::CoordinateXY& p10,
const geom::CoordinateXY& p11);
169 bool isIntersectionEndpoint(
181 std::size_t intersectionVertexIndex(
186 NonSimpleIntersectionFinder(
187 bool p_isClosedEndpointsInInterior,
189 std::vector<geom::CoordinateXY>& p_intersectionPts)
190 : isClosedEndpointsInInterior(p_isClosedEndpointsInInterior)
191 , isFindAll(p_isFindAll)
192 , intersectionPts(p_intersectionPts)
200 bool hasIntersection()
const;
202 void processIntersections(
206 bool isDone()
const override;
223 :
IsSimpleOp(geom, algorithm::BoundaryNodeRule::getBoundaryRuleMod2())
234 , isClosedEndpointsInInterior(! p_boundaryNodeRule.isInBoundary(2))
235 , isFindAllLocations(false)
248 if (!geom)
return false;
249 return isSimple(*geom);
An interface for rules which determine whether node points which are in boundaries of lineal geometry...
Definition: BoundaryNodeRule.h:52
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition: LineIntersector.h:53
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:197
Definition: MultiPoint.h:50
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:47
Definition: IsSimpleOp.h:94
void setFindAllLocations(bool isFindAll)
const std::vector< geom::CoordinateXY > & getNonSimpleLocations()
IsSimpleOp(const geom::Geometry &geom)
Definition: IsSimpleOp.h:222
geom::CoordinateXY getNonSimpleLocation()
static bool isSimple(const geom::Geometry &geom)
geom::CoordinateXY getNonSimpleLocation(const geom::Geometry &geom)
IsSimpleOp(const geom::Geometry &geom, const algorithm::BoundaryNodeRule &p_boundaryNodeRule)
Definition: IsSimpleOp.h:232
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25