Package org.meteoinfo.jts.noding
Class SimpleNoder
- java.lang.Object
-
- org.meteoinfo.jts.noding.SinglePassNoder
-
- org.meteoinfo.jts.noding.SimpleNoder
-
- All Implemented Interfaces:
Noder
public class SimpleNoder extends SinglePassNoder
Nodes a set ofSegmentStrings 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.
-
-
Field Summary
-
Fields inherited from class org.meteoinfo.jts.noding.SinglePassNoder
segInt
-
-
Constructor Summary
Constructors Constructor Description SimpleNoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomputeNodes(java.util.Collection inputSegStrings)Computes the noding for a collection ofSegmentStrings.java.util.CollectiongetNodedSubstrings()Returns aCollectionof fully nodedSegmentStrings.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class org.meteoinfo.jts.noding.SinglePassNoder
setSegmentIntersector
-
-
-
-
Method Detail
-
getNodedSubstrings
public java.util.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(java.util.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
-
-