Class SimpleNoder
java.lang.Object
org.locationtech.jts.noding.SinglePassNoder
org.locationtech.jts.noding.SimpleNoder
- All Implemented Interfaces:
Noder
Nodes a set of
SegmentStrings by
performing a brute-force comparison of every segment to every other one.
This has n^2 performance, so is too slow for use on large numbers
of segments.- Version:
- 1.7
-
Field Summary
Fields inherited from class SinglePassNoder
segInt -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeNodes(Collection inputSegStrings) Computes the noding for a collection ofSegmentStrings.Returns aCollectionof fully nodedSegmentStrings.Methods inherited from class SinglePassNoder
setSegmentIntersector
-
Constructor Details
-
SimpleNoder
public SimpleNoder()
-
-
Method Details
-
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
-