JTS Core 1.17.1
Packages
Classes
Search
About
Top
MCIndexSegmentSetMutualIntersector(Collection)
getIndex(): SpatialIndex
process(Collection, SegmentIntersector): void
Bottom
Source
Classic
org.locationtech.jts.noding
Class MCIndexSegmentSetMutualIntersector
Hierarchy:
Object
, MCIndexSegmentSetMutualIntersector
All Implemented Interfaces:
SegmentSetMutualIntersector
public class MCIndexSegmentSetMutualIntersector
implements
SegmentSetMutualIntersector
Intersects two sets of
SegmentString
s using a index based on
MonotoneChain
s and a
SpatialIndex
. Thread-safe and immutable.
Other
version: 1.7
public
MCIndexSegmentSetMutualIntersector(
Collection
baseSegStrings)
Constructs a new intersector for a given set of
SegmentString
s.
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