Class SegmentStringUtil
Utility methods for processing ISegmentStrings
Inherited Members
Namespace: NetTopologySuite.Noding
Assembly: NetTopologySuite.dll
Syntax
public class SegmentStringUtil
Methods
| Improve this Doc View SourceExtractBasicSegmentStrings(Geometry)
Extracts all linear components from a given Geometry to BasicSegmentStrings. The BasicSegmentString's data item is set to be the source Geometry.
Declaration
public static IList<ISegmentString> ExtractBasicSegmentStrings(Geometry geom)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom | The Geometry to extract from. |
Returns
Type | Description |
---|---|
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.
Declaration
public static IList<ISegmentString> ExtractNodedSegmentStrings(Geometry geom)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom | The Geometry to extract from. |
Returns
Type | Description |
---|---|
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.
Declaration
public static IList<ISegmentString> ExtractSegmentStrings(Geometry geom)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom | The Geometry to extract from. |
Returns
Type | Description |
---|---|
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).
Declaration
public static Geometry ToGeometry(IList<ISegmentString> segStrings, GeometryFactory geomFact)
Parameters
Type | Name | Description |
---|---|---|
IList<ISegmentString> | segStrings | A collection of ISegmentString. |
GeometryFactory | geomFact | A geometry factory |
Returns
Type | Description |
---|---|
Geometry | A LineString or a MultiLineString. |
ToString(IEnumerable<ISegmentString>)
Declaration
public static string ToString(IEnumerable<ISegmentString> segStrings)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ISegmentString> | segStrings |
Returns
Type | Description |
---|---|
String |