Interface IGeometryComponentFilter
Geometry
classes support the concept of applying
an IGeometryComponentFilter
filter to the Geometry
.
Namespace: NetTopologySuite.Geometries
Assembly: NetTopologySuite.dll
Syntax
public interface IGeometryComponentFilter
Remarks
The filter is applied to every component of the Geometry
which is itself a Geometry
and which does not itself contain any components.
(For instance, all the LinearRings in Polygons are visited,
but in a MultiPolygon the Polygons themselves are not visited.)
Thus the only classes of Geometry which must be
handled as arguments to Filter(Geometry)
are 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
| Improve this Doc View SourceFilter(Geometry)
Performs an operation with or on geom
.
Declaration
void Filter(Geometry geom)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom | A |