Package org.locationtech.jts.noding
Class BoundaryChainNoder
- java.lang.Object
-
- org.locationtech.jts.noding.BoundaryChainNoder
-
- All Implemented Interfaces:
Noder
public class BoundaryChainNoder extends Object implements Noder
A noder which extracts chains of boundary segments asSegmentStrings 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 thanSegmentExtractingNoderandBoundarySegmentNoder.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 Constructor Description BoundaryChainNoder()Creates a new boundary-extracting noder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomputeNodes(Collection segStrings)Computes the noding for a collection ofSegmentStrings.CollectiongetNodedSubstrings()Returns aCollectionof fully nodedSegmentStrings.
-
-
-
Method Detail
-
computeNodes
public void computeNodes(Collection segStrings)
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
public Collection 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
-
-