Class MCIndexNoder
java.lang.Object
org.locationtech.jts.noding.SinglePassNoder
org.locationtech.jts.noding.MCIndexNoder
- All Implemented Interfaces:
Noder
Nodes a set of
SegmentStrings using a index based
on MonotoneChains and a SpatialIndex.
The SpatialIndex used should be something that supports
envelope (range) queries efficiently (such as a Quadtree}
or HPRtree (which is the default index provided).
The noder supports using an overlap tolerance distance . This allows determining segment intersection using a buffer for uses involving snapping with a distance tolerance.
- Version:
- 1.7
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class SinglePassNoder
segInt -
Constructor Summary
ConstructorsConstructorDescriptionMCIndexNoder(SegmentIntersector si, double overlapTolerance) Creates a new noder with a givenSegmentIntersectorand an overlap tolerance distance to expand intersection tests with. -
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeNodes(Collection inputSegStrings) Computes the noding for a collection ofSegmentStrings.getIndex()Returns aCollectionof fully nodedSegmentStrings.Methods inherited from class SinglePassNoder
setSegmentIntersector
-
Constructor Details
-
MCIndexNoder
public MCIndexNoder() -
MCIndexNoder
-
MCIndexNoder
Creates a new noder with a givenSegmentIntersectorand an overlap tolerance distance to expand intersection tests with.- Parameters:
si- the segment intersectoroverlapTolerance- the expansion distance for overlap tests
-
-
Method Details
-
getMonotoneChains
-
getIndex
-
getNodedSubstrings
Description copied from class:SinglePassNoderReturns aCollectionof fully nodedSegmentStrings. The SegmentStrings have the same context as their parent.- Specified by:
getNodedSubstringsin interfaceNoder- Specified by:
getNodedSubstringsin classSinglePassNoder- Returns:
- a Collection of SegmentStrings
-
computeNodes
Description copied from class:SinglePassNoderComputes the noding for a collection ofSegmentStrings. Some Noders may add all these nodes to the input SegmentStrings; others may only add some or none at all.- Specified by:
computeNodesin interfaceNoder- Specified by:
computeNodesin classSinglePassNoder- Parameters:
inputSegStrings- a collection ofSegmentStrings to node
-