Package org.locationtech.jts.geom
Interface GeometryComponentFilter
-
- All Known Implementing Classes:
ComponentCoordinateExtracter
,LinearComponentExtracter
public interface GeometryComponentFilter
Geometry
classes support the concept of applying aGeometryComponentFilter
filter to a geometry. The filter is applied to every component of a geometry, as well as to the geometry itself. (For instance, in aPolygon
, all theLinearRing
components for the shell and holes are visited, as well as the polygon itself. In order to process only atomic components, thefilter(org.locationtech.jts.geom.Geometry)
method code must explicitly handle onlyLineString
s,LinearRing
s andPoint
s.A
GeometryComponentFilter
filter can either record information about theGeometry
or change theGeometry
in some way.GeometryComponentFilter
is an example of the Gang-of-Four Visitor pattern.- Version:
- 1.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
filter(Geometry geom)
Performs an operation with or on a geometry component.
-
-
-
Method Detail
-
filter
void filter(Geometry geom)
Performs an operation with or on a geometry component.- Parameters:
geom
- a component of the geometry to which the filter is applied.
-
-