Table of Contents

Class SegmentStringUtil

Namespace
NetTopologySuite.Noding
Assembly
NetTopologySuite.dll

Utility methods for processing ISegmentStrings

public class SegmentStringUtil
Inheritance
SegmentStringUtil
Inherited Members

Constructors

SegmentStringUtil()

public SegmentStringUtil()

Methods

ExtractBasicSegmentStrings(Geometry)

Extracts all linear components from a given Geometry to BasicSegmentStrings. The BasicSegmentString's data item is set to be the source Geometry.

public static IList<ISegmentString> ExtractBasicSegmentStrings(Geometry geom)

Parameters

geom Geometry

The Geometry to extract from.

Returns

IList<ISegmentString>

a list of ISegmentStrings.

ExtractNodedSegmentStrings(Geometry)

Extracts all linear components from a given Geometry to NodedSegmentStrings.
The NodedSegmentString's data item is set to be the source Geometry.

public static IList<ISegmentString> ExtractNodedSegmentStrings(Geometry geom)

Parameters

geom Geometry

The Geometry to extract from.

Returns

IList<ISegmentString>

a list of ISegmentStrings.

ExtractSegmentStrings(Geometry)

Extracts all linear components from a given Geometry to ISegmentStrings.
The ISegmentString's data item is set to be the source Geometry.

public static IList<ISegmentString> ExtractSegmentStrings(Geometry geom)

Parameters

geom Geometry

The Geometry to extract from.

Returns

IList<ISegmentString>

a list of ISegmentStrings.

ToGeometry(IList<ISegmentString>, GeometryFactory)

Converts a collection of ISegmentStrings into a Geometry. The geometry will be either a LineString or a MultiLineString (possibly empty).

public static Geometry ToGeometry(IList<ISegmentString> segStrings, GeometryFactory geomFact)

Parameters

segStrings IList<ISegmentString>

A collection of ISegmentString.

geomFact GeometryFactory

A geometry factory

Returns

Geometry

A LineString or a MultiLineString.

ToString(IEnumerable<ISegmentString>)

public static string ToString(IEnumerable<ISegmentString> segStrings)

Parameters

segStrings IEnumerable<ISegmentString>

Returns

string