Table of Contents

Class PointExtracter

Namespace
NetTopologySuite.Geometries.Utilities
Assembly
NetTopologySuite.dll

Extracts all the 0-dimensional (Point) components from a Geometry.

public class PointExtracter : IGeometryFilter
Inheritance
PointExtracter
Implements
Inherited Members

Constructors

PointExtracter(ICollection<Geometry>)

Constructs a PointExtracterFilter with a list in which to store Points found.

public PointExtracter(ICollection<Geometry> pts)

Parameters

pts ICollection<Geometry>

Methods

Filter(Geometry)

public void Filter(Geometry geom)

Parameters

geom Geometry

GetPoints(Geometry)

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

public static ReadOnlyCollection<Geometry> GetPoints(Geometry geom)

Parameters

geom Geometry

the geometry from which to extract

Returns

ReadOnlyCollection<Geometry>

GetPoints<TCollection>(Geometry, TCollection)

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

public static TCollection GetPoints<TCollection>(Geometry geom, TCollection list) where TCollection : ICollection<Geometry>

Parameters

geom Geometry

The geometry from which to extract

list TCollection

The list to add the extracted elements to

Returns

TCollection

Type Parameters

TCollection