Search Results for

    Show / Hide Table of Contents

    Class SegmentStringUtil

    Utility methods for processing ISegmentStrings

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

    Methods

    | Edit this page View Source

    ExtractBasicSegmentStrings(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.

    | Edit this page View Source

    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.

    | Edit this page View Source

    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.

    | Edit this page View Source

    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.

    | Edit this page View Source

    ToString(IEnumerable<ISegmentString>)

    Declaration
    public static string ToString(IEnumerable<ISegmentString> segStrings)
    Parameters
    Type Name Description
    IEnumerable<ISegmentString> segStrings
    Returns
    Type Description
    string
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX