Package org.locationtech.jts.geom.util
Class GeometryExtracter
- java.lang.Object
-
- org.locationtech.jts.geom.util.GeometryExtracter
-
- All Implemented Interfaces:
GeometryFilter
public class GeometryExtracter extends Object implements GeometryFilter
Extracts the components of a given type from aGeometry
.- Version:
- 1.7
-
-
Constructor Summary
Constructors Constructor Description GeometryExtracter(Class clz, List comps)
Deprecated.GeometryExtracter(String geometryType, List comps)
Constructs a filter with a list in which to store the elements found.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static List
extract(Geometry geom, Class clz)
Deprecated.static List
extract(Geometry geom, Class clz, List list)
Deprecated.static List
extract(Geometry geom, String geometryType)
static List
extract(Geometry geom, String geometryType, List list)
void
filter(Geometry geom)
Performs an operation with or ongeom
.protected static boolean
isOfType(Geometry geom, String geometryType)
-
-
-
Method Detail
-
extract
public static List extract(Geometry geom, Class clz, List list)
Deprecated.- Parameters:
geom
- the geometry from which to extractlist
- the list to add the extracted elements to
-
extract
public static List extract(Geometry geom, String geometryType, List list)
- Parameters:
geom
- the geometry from which to extractgeometryType
- Geometry type to extract (null means all types)list
- the list to add the extracted elements to
-
extract
public static List extract(Geometry geom, Class clz)
Deprecated.- Parameters:
geom
- the geometry from which to extract
-
filter
public void filter(Geometry geom)
Description copied from interface:GeometryFilter
Performs an operation with or ongeom
.- Specified by:
filter
in interfaceGeometryFilter
- Parameters:
geom
- aGeometry
to which the filter is applied.
-
-