Search Results for

    Show / Hide Table of Contents

    Interface ICoordinateFilter

    An interface for classes which use the values of the coordinates in a Geometry. Coordinate filters can be used to implement centroid and envelope computation, and many other functions.

    ICoordinateFilter is an example of the Gang-of-Four Visitor pattern.

    Note: it is not recommended to use these filters to mutate the coordinates. There is no guarantee that the coordinate is the actual object stored in the source geometry. In particular, modified values may not be preserved if the source Geometry uses a non-default CoordinateSequence. If in-place mutation is required, use ICoordinateSequenceFilter.
    Namespace: NetTopologySuite.Geometries
    Assembly: NetTopologySuite.dll
    Syntax
    public interface ICoordinateFilter

    Methods

    | Edit this page View Source

    Filter(Coordinate)

    Performs an operation with the provided coord. Note that there is no guarantee that the input coordinate is the actual object stored in the source geometry, so changes to the coordinate object may not be persistent.

    Declaration
    void Filter(Coordinate coord)
    Parameters
    Type Name Description
    Coordinate coord

    A Coordinate to which the filter is applied.

    See Also

    Apply(ICoordinateFilter)
    ICoordinateSequenceFilter
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX