Class MCIndexSegmentSetMutualIntersector

Hierarchy: Object , MCIndexSegmentSetMutualIntersector
All Implemented Interfaces: SegmentSetMutualIntersector
public class MCIndexSegmentSetMutualIntersector
implements SegmentSetMutualIntersector
Intersects two sets of SegmentStrings using a index based on MonotoneChains and a SpatialIndex. Thread-safe and immutable.

Other

  • version: 1.7
public MCIndexSegmentSetMutualIntersector(Collection baseSegStrings)
Constructs a new intersector for a given set of SegmentStrings.
Parameters:
baseSegStrings - baseSegStrings the base segment strings to intersect
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
public void process(Collection segStrings, SegmentIntersector segInt)
Calls SegmentIntersector.processIntersections(SegmentString, int, SegmentString, int) for all candidate intersections between the given collection of SegmentStrings and the set of indexed segments.
Parameters:
a - a set of segments to intersect
the - the segment intersector to use