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 theGeometry
. The filter is applied to every component of theGeometry
which is itself aGeometry
and which does not itself contain any components. (For instance, all theLinearRing
s inPolygon
s are visited, but in aMultiPolygon
thePolygon
s themselves are not visited.) Thus the only classes of Geometry which must be handled as arguments tofilter(org.locationtech.jts.geom.Geometry)
areLineString
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 ongeom
.
-
-
-
Method Detail
-
filter
void filter(Geometry geom)
Performs an operation with or ongeom
.- Parameters:
geom
- aGeometry
to which the filter is applied.
-
-