Search Results for

    Show / Hide Table of Contents

    Class PolygonExtracter

    Extracts all the Polygon elements from a Geometry.

    Inheritance
    object
    PolygonExtracter
    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 PolygonExtracter : IGeometryFilter

    Constructors

    | Edit this page View Source

    PolygonExtracter(IList<Geometry>)

    Constructs a PolygonExtracterFilter with a list in which to store Polygons found.

    Declaration
    public PolygonExtracter(IList<Geometry> comps)
    Parameters
    Type Name Description
    IList<Geometry> comps

    Methods

    | Edit this page View Source

    Filter(Geometry)

    Declaration
    public void Filter(Geometry geom)
    Parameters
    Type Name Description
    Geometry geom
    | 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<Geometry> GetPolygons(Geometry geom)
    Parameters
    Type Name Description
    Geometry geom

    The geometry from which to extract

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

    GetPolygons(Geometry, IList<Geometry>)

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

    Declaration
    public static IList<Geometry> GetPolygons(Geometry geom, IList<Geometry> list)
    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>

    Implements

    IGeometryFilter

    See Also

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