Search Results for

    Show / Hide Table of Contents

    Class Extracter

    This class offers utility methods to extract single component geometries of requested type from ordinary geometries.

    Inheritance
    object
    Extracter
    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 Extracter

    Methods

    | Edit this page View Source

    GetLines(Geometry)

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

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

    The geometry from which to extract

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

    GetLines(Geometry, IList<LineString>)

    Extracts the Polygon elements from a single Geometry and adds them to the provided IList<T>.

    Declaration
    public static IList<LineString> GetLines(Geometry geom, IList<LineString> list)
    Parameters
    Type Name Description
    Geometry geom

    The geometry from which to extract

    IList<LineString> list

    The list to add the extracted elements to

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

    GetPoints(Geometry)

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

    Declaration
    public static IList<Point> GetPoints(Geometry geom)
    Parameters
    Type Name Description
    Geometry geom

    The geometry from which to extract

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

    GetPoints(Geometry, IList<Point>)

    Extracts the Point elements from a single Geometry and adds them to the provided IList<T>.

    Declaration
    public static IList<Point> GetPoints(Geometry geom, IList<Point> list)
    Parameters
    Type Name Description
    Geometry geom

    The geometry from which to extract

    IList<Point> list

    The list to add the extracted elements to

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

    GetPolygons(Geometry)

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

    Declaration
    public static IList<Polygon> GetPolygons(Geometry geom)
    Parameters
    Type Name Description
    Geometry geom

    The geometry from which to extract

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

    GetPolygons(Geometry, IList<Polygon>)

    Extracts the Polygon elements from a single Geometry and adds them to the provided IList<T>.

    Declaration
    public static IList<Polygon> GetPolygons(Geometry geom, IList<Polygon> list)
    Parameters
    Type Name Description
    Geometry geom

    The geometry from which to extract

    IList<Polygon> list

    The list to add the extracted elements to

    Returns
    Type Description
    IList<Polygon>

    See Also

    PolygonExtracter
    LineStringExtracter
    PointExtracter
    GeometryExtracter
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX