Package org.locationtech.jts.noding
Class MCIndexNoder
- java.lang.Object
-
- org.locationtech.jts.noding.SinglePassNoder
-
- org.locationtech.jts.noding.MCIndexNoder
-
- All Implemented Interfaces:
Noder
public class MCIndexNoder extends SinglePassNoder
Nodes a set ofSegmentStrings using a index based onMonotoneChains and aSpatialIndex. TheSpatialIndexused should be something that supports envelope (range) queries efficiently (such as aQuadtree} orSTRtree(which is the default index provided).- Version:
- 1.7
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMCIndexNoder.SegmentOverlapAction
-
Field Summary
-
Fields inherited from class org.locationtech.jts.noding.SinglePassNoder
segInt
-
-
Constructor Summary
Constructors Constructor Description MCIndexNoder()MCIndexNoder(SegmentIntersector si)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomputeNodes(Collection inputSegStrings)Computes the noding for a collection ofSegmentStrings.SpatialIndexgetIndex()ListgetMonotoneChains()CollectiongetNodedSubstrings()Returns aCollectionof fully nodedSegmentStrings.-
Methods inherited from class org.locationtech.jts.noding.SinglePassNoder
setSegmentIntersector
-
-
-
-
Constructor Detail
-
MCIndexNoder
public MCIndexNoder()
-
MCIndexNoder
public MCIndexNoder(SegmentIntersector si)
-
-
Method Detail
-
getMonotoneChains
public List getMonotoneChains()
-
getIndex
public SpatialIndex getIndex()
-
getNodedSubstrings
public Collection 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
public void computeNodes(Collection inputSegStrings)
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
-
-