public class SegmentExtractingNoder extends Object implements Noder
SegmentStrings.
This enables fast overlay of geometries which are known to be already fully noded.
In particular, it provides fast union of polygonal and linear coverages.
Unioning a noded set of lines is an effective way
to perform line merging and line dissolving.
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 |
|---|
SegmentExtractingNoder()
Creates a new segment-extracting noder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
computeNodes(Collection segStrings)
Computes the noding for a collection of
SegmentStrings. |
Collection |
getNodedSubstrings()
Returns a
Collection of fully noded SegmentStrings. |
public SegmentExtractingNoder()
public void computeNodes(Collection segStrings)
NoderSegmentStrings.
Some Noders may add all these nodes to the input SegmentStrings;
others may only add some or none at all.computeNodes in interface NodersegStrings - a collection of SegmentStrings to nodepublic Collection getNodedSubstrings()
NoderCollection of fully noded SegmentStrings.
The SegmentStrings have the same context as their parent.getNodedSubstrings in interface NoderCopyright © 2024. All rights reserved.