Package org.locationtech.jts.geom
Interface GeometryComponentFilter
- All Known Implementing Classes:
ComponentCoordinateExtracter,GeometryPointLocater.NearestSegmentLocationFilter,LinearComponentExtracter,OctagonalEnvelope.BoundingOctagonComponentFilter,Polygonizer.LineStringAdder,TopologyPreservingSimplifier.LineStringMapBuilderFilter
public interface GeometryComponentFilter
Geometry classes support the concept of applying
a GeometryComponentFilter
filter to the Geometry.
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(org.locationtech.jts.geom.Geometry)
are LineStrings, LinearRings and Points.
A GeometryComponentFilter filter can either
record information about the Geometry
or change the Geometry in some way.
GeometryComponentFilter
is an example of the Gang-of-Four Visitor pattern.
- Version:
- 1.7
-
Method Summary
-
Method Details
-
filter
Performs an operation with or ongeom.- Parameters:
geom- aGeometryto which the filter is applied.
-