Class SegmentExtractingNoder
java.lang.Object
org.locationtech.jts.noding.SegmentExtractingNoder
- All Implemented Interfaces:
Noder
A noder which extracts all line segments
as
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.
- Author:
- Martin Davis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeNodes(Collection segStrings) Computes the noding for a collection ofSegmentStrings.Returns aCollectionof fully nodedSegmentStrings.
-
Constructor Details
-
SegmentExtractingNoder
public SegmentExtractingNoder()Creates a new segment-extracting noder.
-
-
Method Details
-
computeNodes
Description copied from interface:NoderComputes 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- Parameters:
segStrings- a collection ofSegmentStrings to node
-
getNodedSubstrings
Description copied from interface:NoderReturns aCollectionof fully nodedSegmentStrings. The SegmentStrings have the same context as their parent.- Specified by:
getNodedSubstringsin interfaceNoder- Returns:
- a Collection of SegmentStrings
-