Class ComponentCoordinateExtracter
Extracts a representative Coordinate from each connected component of a Geometry.
Implements
Inherited Members
Namespace: NetTopologySuite.Geometries.Utilities
Assembly: NetTopologySuite.dll
Syntax
public class ComponentCoordinateExtracter : IGeometryComponentFilter
Constructors
| Improve this Doc View SourceComponentCoordinateExtracter(List<Coordinate>)
Constructs a LineExtracterFilter with a list in which to store LineStrings found.
Declaration
public ComponentCoordinateExtracter(List<Coordinate> coords)
Parameters
Type | Name | Description |
---|---|---|
List<Coordinate> | coords |
Methods
| Improve this Doc View SourceFilter(Geometry)
Declaration
public void Filter(Geometry geom)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom |
GetCoordinates(Geometry)
Extracts a representative Coordinate from each connected component in a geometry.
If more than one geometry is to be processed, it is more efficient to create a single ComponentCoordinateExtracter instance and pass it to each geometry.
Declaration
public static List<Coordinate> GetCoordinates(Geometry geom)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom | The Geometry from which to extract |
Returns
Type | Description |
---|---|
List<Coordinate> | A list of representative Coordinates |