Table of Contents

Class PolygonExtracter

Namespace
NetTopologySuite.Geometries.Utilities
Assembly
NetTopologySuite.dll

Extracts all the Polygon elements from a Geometry.

public class PolygonExtracter : IGeometryFilter
Inheritance
PolygonExtracter
Implements
Inherited Members

Constructors

PolygonExtracter(IList<Geometry>)

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

public PolygonExtracter(IList<Geometry> comps)

Parameters

comps IList<Geometry>

Methods

Filter(Geometry)

public void Filter(Geometry geom)

Parameters

geom Geometry

GetPolygons(Geometry)

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

public static IList<Geometry> GetPolygons(Geometry geom)

Parameters

geom Geometry

The geometry from which to extract

Returns

IList<Geometry>

GetPolygons(Geometry, IList<Geometry>)

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

public static IList<Geometry> GetPolygons(Geometry geom, IList<Geometry> list)

Parameters

geom Geometry

The geometry from which to extract

list IList<Geometry>

The list to add the extracted elements to

Returns

IList<Geometry>