Search Results for

    Show / Hide Table of Contents

    Interface IGeometryComponentFilter

    Geometry classes support the concept of applying an IGeometryComponentFilter filter to a geometry.

    Namespace: NetTopologySuite.Geometries
    Assembly: NetTopologySuite.dll
    Syntax
    public interface IGeometryComponentFilter
    Remarks

    The filter is applied to every component of a geometry as well as to the geometry itself. For instance, in a Polygon, all the LinearRing components for the shell and holes are visited, as well as the polygon itself. In order to process only atomic components, the Filter(Geometry) method code must explicitly handle only LineStrings, LinearRings and Points.

    An IGeometryComponentFilter filter can either record information about the Geometry or change the Geometry in some way.

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

    Methods

    | Edit this page View Source

    Filter(Geometry)

    Performs an operation with or on a geometry component.

    Declaration
    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
    In this article
    Back to top Generated by DocFX