Package com.vividsolutions.jts.noding
Class MCIndexSegmentSetMutualIntersector
- java.lang.Object
-
- com.vividsolutions.jts.noding.MCIndexSegmentSetMutualIntersector
-
- All Implemented Interfaces:
SegmentSetMutualIntersector
public class MCIndexSegmentSetMutualIntersector extends java.lang.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 classMCIndexSegmentSetMutualIntersector.SegmentOverlapAction
-
Constructor Summary
Constructors Constructor Description MCIndexSegmentSetMutualIntersector(java.util.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(java.util.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.
-
-
-
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(java.util.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
-
-