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)
public static ReadOnlyCollection<Geometry> GetPoints(Geometry geom)
Parameters
geom
Geometrythe geometry from which to extract
Returns
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
GeometryThe geometry from which to extract
list
TCollectionThe list to add the extracted elements to
Returns
- TCollection
Type Parameters
TCollection