Table of Contents

Class GeometryExtracter

Namespace
NetTopologySuite.Geometries.Utilities
Assembly
NetTopologySuite.dll

Extracts the components of a given type from a Geometry.

public static class GeometryExtracter
Inheritance
GeometryExtracter
Inherited Members

Methods

Extract(Geometry, string)

Extracts the components of geometryType from a Geometry

public static IList<Geometry> Extract(Geometry geom, string geometryType)

Parameters

geom Geometry

The geometry from which to extract

geometryType string

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

Returns

IList<Geometry>

Extract(Geometry, string, IList<Geometry>)

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

public static IList<Geometry> Extract(Geometry geom, string geometryType, IList<Geometry> list)

Parameters

geom Geometry

The geometry from which to extract

geometryType string

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

list IList<Geometry>

The list to add the extracted elements to

Returns

IList<Geometry>

Extract<T>(Geometry)

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

public static IList<Geometry> Extract<T>(Geometry geom) where T : Geometry

Parameters

geom Geometry

the geometry from which to extract

Returns

IList<Geometry>

Type Parameters

T

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

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

public static IList<Geometry> Extract<T>(Geometry geom, IList<Geometry> list) where T : Geometry

Parameters

geom Geometry

the geometry from which to extract

list IList<Geometry>

the list to add the extracted elements to

Returns

IList<Geometry>

Type Parameters

T

The geometry type to extract