Search Results for

    Show / Hide Table of Contents

    Class LineDissolver

    Dissolves the linear components from a collection of Geometrys. into a set of maximal-length LineStrings in which every unique segment appears once only. The output linestrings run between node vertices of the input, which are vertices which have either degree 1, or degree 3 or greater.

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

    Use cases for dissolving linear components include generalization (in particular, simplifying polygonal coverages), and visualization (in particular, avoiding symbology conflicts when depicting shared polygon boundaries).

    Constructors

    | Edit this page View Source

    LineDissolver()

    Creates an instance of this class

    Declaration
    public LineDissolver()

    Methods

    | Edit this page View Source

    Add(Geometry)

    Adds a Geometry to be dissolved. Any number of geometries may be added by calling this method multiple times. Any type of Geometry may be added. The constituent linework will be extracted to be dissolved.

    Declaration
    public void Add(Geometry geometry)
    Parameters
    Type Name Description
    Geometry geometry

    geometry to be line-merged

    | 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

    the geometries to be line-merged

    | Edit this page View Source

    Dissolve(Geometry)

    Dissolves the linear components in a geometry.

    Declaration
    public static Geometry Dissolve(Geometry g)
    Parameters
    Type Name Description
    Geometry g

    the geometry to dissolve

    Returns
    Type Description
    Geometry

    the dissolved lines

    | Edit this page View Source

    GetResult()

    Gets the dissolved result as a MultiLineString.

    Declaration
    public Geometry GetResult()
    Returns
    Type Description
    Geometry

    the dissolved lines

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX