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)Constructs a filter with a list in which to store the elements found.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Listextract(Geometry geom, Class clz)static Listextract(Geometry geom, Class clz, List list)voidfilter(Geometry geom)Performs an operation with or ongeom.protected static booleanisOfClass(Object o, Class clz)
-
-
-
Method Detail
-
extract
public static List extract(Geometry geom, Class clz, List list)
- Parameters:
geom- the geometry from which to extractlist- the list to add the extracted elements to
-
extract
public static List extract(Geometry geom, Class clz)
- 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.
-
-