Package org.locationtech.jts.geom
Interface GeometryComponentFilter
-
- All Known Implementing Classes:
ComponentCoordinateExtracter,LinearComponentExtracter
public interface GeometryComponentFilterGeometryclasses support the concept of applying aGeometryComponentFilterfilter to theGeometry. The filter is applied to every component of theGeometrywhich is itself aGeometryand which does not itself contain any components. (For instance, all theLinearRings inPolygons are visited, but in aMultiPolygonthePolygons themselves are not visited.) Thus the only classes of Geometry which must be handled as arguments tofilter(org.locationtech.jts.geom.Geometry)areLineStrings,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 ongeom.
-
-
-
Method Detail
-
filter
void filter(Geometry geom)
Performs an operation with or ongeom.- Parameters:
geom- aGeometryto which the filter is applied.
-
-