Search Results for

    Show / Hide Table of Contents

    Class LineMerger

    Sews together a set of fully noded LineStrings.

    Inheritance
    object
    LineMerger
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Operation.Linemerge
    Assembly: NetTopologySuite.dll
    Syntax
    public class LineMerger
    Remarks

    Sewing stops at nodes of degree 1 or 3 or more -- the exception is an isolated loop, which only has degree-2 nodes, in which case a node is simply chosen as a starting point. The direction of each merged LineString will be that of the majority of the LineStrings from which it was derived.

    Any dimension of Geometry is handled -- the constituent linework is extracted to form the edges. The edges must be correctly noded; that is, they must only meet at their endpoints. The LineMerger will still run on incorrectly noded input but will not form polygons from incorrected noded edges.

    NOTE:once merging has been performed, no more

    Methods

    | Edit this page View Source

    Add(Geometry)

    Adds a Geometry to be processed. May be called multiple times. Any dimension of Geometry may be added; the constituent linework will be extracted.

    Declaration
    public void Add(Geometry geometry)
    Parameters
    Type Name Description
    Geometry geometry
    | Edit this page View Source

    Add(IEnumerable<Geometry>)

    Adds a collection of Geometries to be processed. May be called multiple times. Any dimension of Geometry may be added; the constituent linework will be extracted.

    Declaration
    public void Add(IEnumerable<Geometry> geometries)
    Parameters
    Type Name Description
    IEnumerable<Geometry> geometries
    | Edit this page View Source

    GetMergedLineStrings()

    Returns the LineStrings built by the merging process.

    Declaration
    public IList<Geometry> GetMergedLineStrings()
    Returns
    Type Description
    IList<Geometry>
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX