Search Results for

    Show / Hide Table of Contents

    Class ComponentCoordinateExtracter

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

    Inheritance
    object
    ComponentCoordinateExtracter
    Implements
    IGeometryComponentFilter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Geometries.Utilities
    Assembly: NetTopologySuite.dll
    Syntax
    public class ComponentCoordinateExtracter : IGeometryComponentFilter

    Constructors

    | Edit this page View Source

    ComponentCoordinateExtracter(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

    | Edit this page View Source

    Filter(Geometry)

    Performs an operation with or on a geometry component.

    Declaration
    public void Filter(Geometry geom)
    Parameters
    Type Name Description
    Geometry geom

    A component of the geometry to which the filter is applied.

    | Edit this page View Source

    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

    Implements

    IGeometryComponentFilter
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX