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 ofSegmentStrings using a index based onMonotoneChains and aSpatialIndex. Thread-safe and immutable.- Version:
- 1.7
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMCIndexSegmentSetMutualIntersector.SegmentOverlapAction
-
Constructor Summary
Constructors Constructor Description MCIndexSegmentSetMutualIntersector(Collection baseSegStrings)Constructs a new intersector for a given set ofSegmentStrings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpatialIndexgetIndex()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 Detail
-
MCIndexSegmentSetMutualIntersector
public MCIndexSegmentSetMutualIntersector(Collection baseSegStrings)
Constructs a new intersector for a given set ofSegmentStrings.- Parameters:
baseSegStrings- the base segment strings to intersect
-
-
Method Detail
-
getIndex
public SpatialIndex 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
public 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.- Specified by:
processin interfaceSegmentSetMutualIntersector- Parameters:
a- set of segments to intersectthe- segment intersector to use
-
-