Class PolygonalExtracter
.
Inherited Members
Namespace: NetTopologySuite.Geometries.Utilities
Assembly: NetTopologySuite.dll
Syntax
public static class PolygonalExtracter
Methods
| Edit this page View SourceGetPolygonals<TCollection>(Geometry)
Extracts the Polygon and MultiPolygon elements from a Geometry and returns them in a list.
Declaration
public static TCollection GetPolygonals<TCollection>(this Geometry geom) where TCollection : ICollection<Geometry>, new()
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom | The geometry from which to extract |
Returns
Type | Description |
---|---|
TCollection |
Type Parameters
Name | Description |
---|---|
TCollection |
GetPolygonals<TCollection>(Geometry, TCollection)
Extracts the Polygon and MultiPolygon elements from a Geometry and adds them to the provided list.
Declaration
public static TCollection GetPolygonals<TCollection>(this Geometry geom, TCollection list) where TCollection : ICollection<Geometry>
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom | The geometry from which to extract |
TCollection | list | The list to add the extracted elements to |
Returns
Type | Description |
---|---|
TCollection |
Type Parameters
Name | Description |
---|---|
TCollection |