Package org.locationtech.jts.geom
Interface GeometryComponentFilter
-
- All Known Implementing Classes:
ComponentCoordinateExtracter,LinearComponentExtracter
public interface GeometryComponentFilterGeometryclasses support the concept of applying aGeometryComponentFilterfilter 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 theLinearRingcomponents 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 onlyLineStrings,LinearRings andPoints.A
GeometryComponentFilterfilter can either record information about theGeometryor change theGeometryin some way.GeometryComponentFilteris 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 voidfilter(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.
-
-