Package org.locationtech.jts.noding
Class MCIndexSegmentSetMutualIntersector
java.lang.Object
org.locationtech.jts.noding.MCIndexSegmentSetMutualIntersector
- All Implemented Interfaces:
SegmentSetMutualIntersector
public class MCIndexSegmentSetMutualIntersector
extends Object
implements SegmentSetMutualIntersector
Intersects two sets of
SegmentString
s using a index based
on MonotoneChain
s and a SpatialIndex
.
Thread-safe and immutable.- Version:
- 1.7
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorsConstructorDescriptionMCIndexSegmentSetMutualIntersector
(Collection baseSegStrings) Constructs a new intersector for a given set ofSegmentString
s.MCIndexSegmentSetMutualIntersector
(Collection baseSegStrings, double overlapTolerance) MCIndexSegmentSetMutualIntersector
(Collection baseSegStrings, Envelope env) -
Method Summary
Modifier and TypeMethodDescriptiongetIndex()
Gets the index constructed over the base segment strings.void
process
(Collection segStrings, SegmentIntersector segInt) CallsSegmentIntersector.processIntersections(SegmentString, int, SegmentString, int)
for all candidate intersections between the given collection of SegmentStrings and the set of indexed segments.
-
Constructor Details
-
MCIndexSegmentSetMutualIntersector
Constructs a new intersector for a given set ofSegmentString
s.- Parameters:
baseSegStrings
- the base segment strings to intersect
-
MCIndexSegmentSetMutualIntersector
-
MCIndexSegmentSetMutualIntersector
-
-
Method Details
-
getIndex
Gets the index constructed over the base segment strings. NOTE: To retain thread-safety, treat returned value as immutable!- Returns:
- the constructed index
-
process
CallsSegmentIntersector.processIntersections(SegmentString, int, SegmentString, int)
for all candidate intersections between the given collection of SegmentStrings and the set of indexed segments.- Specified by:
process
in interfaceSegmentSetMutualIntersector
- Parameters:
segStrings
- set of segments to intersectsegInt
- segment intersector to use
-