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
SegmentStrings using a index based
on MonotoneChains 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 ofSegmentStrings.MCIndexSegmentSetMutualIntersector(Collection baseSegStrings, double overlapTolerance) MCIndexSegmentSetMutualIntersector(Collection baseSegStrings, Envelope env) -
Method Summary
Modifier and TypeMethodDescriptiongetIndex()Gets the index constructed over the base segment strings.voidprocess(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 ofSegmentStrings.- 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:
processin interfaceSegmentSetMutualIntersector- Parameters:
segStrings- set of segments to intersectsegInt- segment intersector to use
-