Package org.locationtech.jts.geom.util
Class GeometryExtracter
java.lang.Object
org.locationtech.jts.geom.util.GeometryExtracter
- All Implemented Interfaces:
GeometryFilter
Extracts the components of a given type from a
Geometry.- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGeometryExtracter(Class clz, List comps) Constructs a filter with a list in which to store the elements found. -
Method Summary
-
Field Details
-
clz
-
comps
-
-
Constructor Details
-
GeometryExtracter
Constructs a filter with a list in which to store the elements found.- Parameters:
clz- the class of the components to extract (null means all types)comps- the list to extract into
-
-
Method Details
-
isOfClass
-
extract
- Parameters:
geom- the geometry from which to extractlist- the list to add the extracted elements to
-
extract
- Parameters:
geom- the geometry from which to extract
-
filter
Description copied from interface:GeometryFilterPerforms an operation with or ongeom.- Specified by:
filterin interfaceGeometryFilter- Parameters:
geom- aGeometryto which the filter is applied.
-