Search Results for

    Show / Hide Table of Contents

    Class GeometryExtracter

    Extracts the components of a given type from a Geometry.

    Inheritance
    object
    GeometryExtracter
    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 static class GeometryExtracter

    Methods

    | Edit this page View Source

    Extract(Geometry, string)

    Extracts the components of geometryType from a Geometry

    Declaration
    public static IList<Geometry> Extract(Geometry geom, string geometryType)
    Parameters
    Type Name Description
    Geometry geom

    The geometry from which to extract

    string geometryType

    Geometry type to extract (null or all white-space means all types)

    Returns
    Type Description
    IList<Geometry>
    | Edit this page View Source

    Extract(Geometry, string, IList<Geometry>)

    Extracts the components of geometryType from a Geometry and adds them to the provided IList<T>

    Declaration
    public static IList<Geometry> Extract(Geometry geom, string geometryType, IList<Geometry> list)
    Parameters
    Type Name Description
    Geometry geom

    The geometry from which to extract

    string geometryType

    Geometry type to extract (null or all white-space means all types)

    IList<Geometry> list

    The list to add the extracted elements to

    Returns
    Type Description
    IList<Geometry>
    | Edit this page View Source

    Extract<T>(Geometry)

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

    Declaration
    public static IList<Geometry> Extract<T>(Geometry geom) where T : Geometry
    Parameters
    Type Name Description
    Geometry geom

    the geometry from which to extract

    Returns
    Type Description
    IList<Geometry>
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    Extract<T>(Geometry, IList<Geometry>)

    Extracts the T components from an Geometry and adds them to the provided IList<T>.

    Declaration
    public static IList<Geometry> Extract<T>(Geometry geom, IList<Geometry> list) where T : Geometry
    Parameters
    Type Name Description
    Geometry geom

    the geometry from which to extract

    IList<Geometry> list

    the list to add the extracted elements to

    Returns
    Type Description
    IList<Geometry>
    Type Parameters
    Name Description
    T

    The geometry type to extract

    See Also

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