public class BoundaryChainNoder extends Object implements Noder
SegmentString
s from a polygonal coverage.
Boundary segments are those which are not duplicated in the input polygonal coverage.
Extracting chains of segments minimize the number of segment strings created,
which produces a more efficient topological graph structure.
This enables fast overlay of polygonal coverages in CoverageUnion
.
Using this noder is faster than SegmentExtractingNoder
and BoundarySegmentNoder
.
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.
Constructor and Description |
---|
BoundaryChainNoder()
Creates a new boundary-extracting noder.
|
Modifier and Type | Method and Description |
---|---|
void |
computeNodes(Collection segStrings)
Computes the noding for a collection of
SegmentString s. |
Collection |
getNodedSubstrings()
Returns a
Collection of fully noded SegmentString s. |
public BoundaryChainNoder()
public void computeNodes(Collection segStrings)
Noder
SegmentString
s.
Some Noders may add all these nodes to the input SegmentStrings;
others may only add some or none at all.computeNodes
in interface Noder
segStrings
- a collection of SegmentString
s to nodepublic Collection getNodedSubstrings()
Noder
Collection
of fully noded SegmentString
s.
The SegmentStrings have the same context as their parent.getNodedSubstrings
in interface Noder
Copyright © 2022. All rights reserved.