Package org.locationtech.jts.noding
Class BoundarySegmentNoder
java.lang.Object
org.locationtech.jts.noding.BoundarySegmentNoder
- All Implemented Interfaces:
Noder
A noder which extracts boundary line segments
as
SegmentString
s.
Boundary segments are those which are not duplicated in the input.
It is appropriate for use with valid polygonal coverages.
No precision reduction is carried out. If that is required, another noder must be used (such as a snap-rounding noder), or the input must be precision-reduced beforehand.
- Author:
- Martin Davis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
computeNodes
(Collection segStrings) Computes the noding for a collection ofSegmentString
s.Returns aCollection
of fully nodedSegmentString
s.
-
Constructor Details
-
BoundarySegmentNoder
public BoundarySegmentNoder()Creates a new segment-dissolving noder.
-
-
Method Details
-
computeNodes
Description copied from interface:Noder
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
- Parameters:
segStrings
- a collection ofSegmentString
s to node
-
getNodedSubstrings
Description copied from interface:Noder
Returns aCollection
of fully nodedSegmentString
s. The SegmentStrings have the same context as their parent.- Specified by:
getNodedSubstrings
in interfaceNoder
- Returns:
- a Collection of SegmentStrings
-