public interface GeometryComponentFilter
Geometry
classes support the concept of applying
a GeometryComponentFilter
filter to a geometry.
The filter is applied to every component of a geometry,
as well as to the geometry itself.
(For instance, in a Polygon
,
all the LinearRing
components for the shell and holes are visited,
as well as the polygon itself.
In order to process only atomic components,
the filter(org.locationtech.jts.geom.Geometry)
method code must
explicitly handle only LineString
s, LinearRing
s and Point
s.
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.
Modifier and Type | Method and Description |
---|---|
void |
filter(Geometry geom)
Performs an operation with or on a geometry component.
|
void filter(Geometry geom)
geom
- a component of the geometry to which the filter is applied.Copyright © 2024. All rights reserved.