Class BoundarySegmentNoder

  • All Implemented Interfaces:
    Noder

    public class BoundarySegmentNoder
    extends java.lang.Object
    implements Noder
    A noder which extracts boundary line segments as SegmentStrings. 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 Detail

      • BoundarySegmentNoder

        public BoundarySegmentNoder()
        Creates a new segment-dissolving noder.
    • Method Detail

      • computeNodes

        public void computeNodes​(java.util.Collection segStrings)
        Description copied from interface: Noder
        Computes the noding for a collection of SegmentStrings. Some Noders may add all these nodes to the input SegmentStrings; others may only add some or none at all.
        Specified by:
        computeNodes in interface Noder
        Parameters:
        segStrings - a collection of SegmentStrings to node
      • getNodedSubstrings

        public java.util.Collection getNodedSubstrings()
        Description copied from interface: Noder
        Returns a Collection of fully noded SegmentStrings. The SegmentStrings have the same context as their parent.
        Specified by:
        getNodedSubstrings in interface Noder
        Returns:
        a Collection of SegmentStrings