Table of Contents

Class ComponentCoordinateExtracter

Namespace
NetTopologySuite.Geometries.Utilities
Assembly
NetTopologySuite.dll

Extracts a representative Coordinate from each connected component of a Geometry.

public class ComponentCoordinateExtracter : IGeometryComponentFilter
Inheritance
ComponentCoordinateExtracter
Implements
Inherited Members

Constructors

ComponentCoordinateExtracter(List<Coordinate>)

Constructs a LineExtracterFilter with a list in which to store LineStrings found.

public ComponentCoordinateExtracter(List<Coordinate> coords)

Parameters

coords List<Coordinate>

Methods

Filter(Geometry)

public void Filter(Geometry geom)

Parameters

geom Geometry

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.
public static List<Coordinate> GetCoordinates(Geometry geom)

Parameters

geom Geometry

The Geometry from which to extract

Returns

List<Coordinate>

A list of representative Coordinates