Search Results for

    Show / Hide Table of Contents

    Class LineStringExtracter

    Extracts all the LineString elements from a Geometry.

    Inheritance
    object
    LineStringExtracter
    Implements
    IGeometryFilter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Geometries.Utilities
    Assembly: NetTopologySuite.dll
    Syntax
    public class LineStringExtracter : IGeometryFilter

    Constructors

    | Edit this page View Source

    LineStringExtracter(ICollection<Geometry>)

    Constructs a filter with a list in which to store the elements found.

    Declaration
    public LineStringExtracter(ICollection<Geometry> comps)
    Parameters
    Type Name Description
    ICollection<Geometry> comps

    Methods

    | Edit this page View Source

    Filter(Geometry)

    Performs an operation with or on geom.

    Declaration
    public void Filter(Geometry geom)
    Parameters
    Type Name Description
    Geometry geom

    A Geometry to which the filter is applied.

    | Edit this page View Source

    GetGeometry(Geometry)

    Extracts the LineString elements from a single Geometry and returns them as either a LineString or MultiLineString.

    Declaration
    public static Geometry GetGeometry(Geometry geom)
    Parameters
    Type Name Description
    Geometry geom

    The geometry from which to extract

    Returns
    Type Description
    Geometry

    A linear geometry

    | Edit this page View Source

    GetLines(Geometry)

    Extracts the LineString elements from a single Geometry and returns them in a List<T>.

    Declaration
    public static ReadOnlyCollection<Geometry> GetLines(Geometry geom)
    Parameters
    Type Name Description
    Geometry geom

    The geometry from which to extract

    Returns
    Type Description
    ReadOnlyCollection<Geometry>

    A list containing the linear elements

    | Edit this page View Source

    GetLines<TCollection>(Geometry, TCollection)

    Extracts the LineString elements from a single Geometry and adds them to theICollection<T>.

    Declaration
    public static TCollection GetLines<TCollection>(Geometry geom, TCollection lines) where TCollection : ICollection<Geometry>
    Parameters
    Type Name Description
    Geometry geom

    The geometry from which to extract

    TCollection lines

    The list to add the extracted elements to

    Returns
    Type Description
    TCollection

    The lines list argument

    Type Parameters
    Name Description
    TCollection

    Implements

    IGeometryFilter

    See Also

    GeometryExtracter
    Extracter
    Extracter<T>
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX