Package org.locationtech.jts.noding
Class SimpleNoder
- java.lang.Object
-
- org.locationtech.jts.noding.SinglePassNoder
-
- org.locationtech.jts.noding.SimpleNoder
-
- All Implemented Interfaces:
Noder
public class SimpleNoder extends SinglePassNoder
Nodes a set ofSegmentString
s 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
-
-
Constructor Summary
Constructors Constructor Description SimpleNoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
computeNodes(java.util.Collection inputSegStrings)
Computes the noding for a collection ofSegmentString
s.java.util.Collection
getNodedSubstrings()
Returns aCollection
of fully nodedSegmentString
s.-
Methods inherited from class org.locationtech.jts.noding.SinglePassNoder
setSegmentIntersector
-
-
-
-
Method Detail
-
getNodedSubstrings
public java.util.Collection getNodedSubstrings()
Description copied from class:SinglePassNoder
Returns aCollection
of fully nodedSegmentString
s. The SegmentStrings have the same context as their parent.- Specified by:
getNodedSubstrings
in interfaceNoder
- Specified by:
getNodedSubstrings
in classSinglePassNoder
- Returns:
- a Collection of SegmentStrings
-
computeNodes
public void computeNodes(java.util.Collection inputSegStrings)
Description copied from class:SinglePassNoder
Computes the noding for a collection ofSegmentString
s. Some Noders may add all these nodes to the input SegmentStrings; others may only add some or none at all.- Specified by:
computeNodes
in interfaceNoder
- Specified by:
computeNodes
in classSinglePassNoder
- Parameters:
inputSegStrings
- a collection ofSegmentString
s to node
-
-