Package org.locationtech.jts.noding.snap
Class SnappingIntersectionAdder
java.lang.Object
org.locationtech.jts.noding.snap.SnappingIntersectionAdder
- All Implemented Interfaces:
SegmentIntersector
Finds intersections between line segments which are being snapped,
and adds them as nodes.
- Version:
- 1.17
-
Constructor Summary
ConstructorsConstructorDescriptionSnappingIntersectionAdder
(double snapTolerance, SnappingPointIndex snapPointIndex) Creates an intersector which finds intersections, snaps them, and adds them as nodes. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isDone()
Always process all intersectionsvoid
processIntersections
(SegmentString seg0, int segIndex0, SegmentString seg1, int segIndex1) This method is called by clients of theSegmentIntersector
class to process intersections for two segments of theSegmentString
s being intersected.
-
Constructor Details
-
SnappingIntersectionAdder
Creates an intersector which finds intersections, snaps them, and adds them as nodes.- Parameters:
snapTolerance
- the snapping tolerance distancesnapPointIndex
- the snapPointIndex
-
-
Method Details
-
processIntersections
public void processIntersections(SegmentString seg0, int segIndex0, SegmentString seg1, int segIndex1) This method is called by clients of theSegmentIntersector
class to process intersections for two segments of theSegmentString
s being intersected. Note that some clients (such asMonotoneChain
s) may optimize away this call for segment pairs which they have determined do not intersect (e.g. by an disjoint envelope test).- Specified by:
processIntersections
in interfaceSegmentIntersector
-
isDone
public boolean isDone()Always process all intersections- Specified by:
isDone
in interfaceSegmentIntersector
- Returns:
- false always
-