Class SinglePassNoder
java.lang.Object
org.locationtech.jts.noding.SinglePassNoder
- All Implemented Interfaces:
Noder
- Direct Known Subclasses:
MCIndexNoder, SimpleNoder
Base class for
Noders which make a single
pass to find intersections.
This allows using a custom SegmentIntersector
(which for instance may simply identify intersections, rather than
insert them).- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidcomputeNodes(Collection segStrings) Computes the noding for a collection ofSegmentStrings.abstract CollectionReturns aCollectionof fully nodedSegmentStrings.voidSets the SegmentIntersector to use with this noder.
-
Field Details
-
segInt
-
-
Constructor Details
-
SinglePassNoder
public SinglePassNoder() -
SinglePassNoder
-
-
Method Details
-
setSegmentIntersector
Sets the SegmentIntersector to use with this noder. A SegmentIntersector will normally add intersection nodes to the input segment strings, but it may not - it may simply record the presence of intersections. However, some Noders may require that intersections be added.- Parameters:
segInt-
-
computeNodes
Computes 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- Parameters:
segStrings- a collection ofSegmentStrings to node
-
getNodedSubstrings
Returns aCollectionof fully nodedSegmentStrings. The SegmentStrings have the same context as their parent.- Specified by:
getNodedSubstringsin interfaceNoder- Returns:
- a Collection of SegmentStrings
-