Package org.locationtech.jts.noding
Class SimpleNoder
java.lang.Object
org.locationtech.jts.noding.SinglePassNoder
org.locationtech.jts.noding.SimpleNoder
- All Implemented Interfaces:
Noder
Nodes a set of
SegmentString
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
-
Field Summary
FieldsFields inherited from class org.locationtech.jts.noding.SinglePassNoder
segInt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
computeNodes
(Collection inputSegStrings) Computes the noding for a collection ofSegmentString
s.Returns aCollection
of fully nodedSegmentString
s.Methods inherited from class org.locationtech.jts.noding.SinglePassNoder
setSegmentIntersector
-
Field Details
-
nodedSegStrings
-
-
Constructor Details
-
SimpleNoder
public SimpleNoder()
-
-
Method Details
-
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
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
-
computeIntersects
-