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 Listextract(Geometry geom, Class clz)Deprecated.static Listextract(Geometry geom, Class clz, List list)Deprecated.static Listextract(Geometry geom, String geometryType)static Listextract(Geometry geom, String geometryType, List list)voidfilter(Geometry geom)Performs an operation with or ongeom.protected static booleanisOfType(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:GeometryFilterPerforms an operation with or ongeom.- Specified by:
filterin interfaceGeometryFilter- Parameters:
geom- aGeometryto which the filter is applied.
-
-