NetTopologySuite
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
NetTopologySuite.Dissolve.LineDissolver Class Reference

Dissolves the linear components from a collection of IGeometrys. into a set of maximal-length ILineStrings 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. More...

Public Member Functions

void Add (IGeometry geometry)
 Adds a IGeometry to be dissolved. Any number of geometries may be adde by calling this method multiple times. Any type of Geometry may be added. The constituent linework will be extracted to be dissolved. More...
 
void Add (IEnumerable< IGeometry > geometries)
 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. More...
 
IGeometry GetResult ()
 Gets the dissolved result as a IMultiLineString. More...
 

Static Public Member Functions

static IGeometry Dissolve (IGeometry g)
 Dissolves the linear components in a geometry. More...
 

Detailed Description

Dissolves the linear components from a collection of IGeometrys. into a set of maximal-length ILineStrings 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.

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).

This class does NOT node the input lines. If there are line segments crossing in the input, they will still cross in the output. /remarks>

Member Function Documentation

void NetTopologySuite.Dissolve.LineDissolver.Add ( IGeometry  geometry)

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

Parameters
geometrygeometry to be line-merged
void NetTopologySuite.Dissolve.LineDissolver.Add ( IEnumerable< IGeometry >  geometries)

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.

Parameters
geometriesthe geometries to be line-merged
static IGeometry NetTopologySuite.Dissolve.LineDissolver.Dissolve ( IGeometry  g)
static

Dissolves the linear components in a geometry.

Parameters
gthe geometry to dissolve
Returns
the dissolved lines
IGeometry NetTopologySuite.Dissolve.LineDissolver.GetResult ( )

Gets the dissolved result as a IMultiLineString.

Returns
the dissolved lines

The documentation for this class was generated from the following file: