Class GeometryExtracter

Hierarchy: Object , GeometryExtracter
All Implemented Interfaces: GeometryFilter
public class GeometryExtracter
implements GeometryFilter
Extracts the components of a given type from a Geometry.

Other

  • version: 1.7
public GeometryExtracter(Class clz, List comps)
Constructs a filter with a list in which to store the elements found.
Parameters:
clz - clz the class of the components to extract (null means all types)
comps - comps the list to extract into
public GeometryExtracter(String geometryType, List comps)
Constructs a filter with a list in which to store the elements found.
Parameters:
geometryType - geometryType Geometry type to extract (null means all types)
comps - comps the list to extract into
public static List extract(Geometry geom, Class clz, List list)
Extracts the components of type clz from a Geometry and adds them to the provided List.
Parameters:
geom - geom the geometry from which to extract
list - list the list to add the extracted elements to
Deprecation:
Use GeometryExtracter.extract(Geometry, String, List)
public static List extract(Geometry geom, String geometryType, List list)
Extracts the components of geometryType from a Geometry and adds them to the provided List.
Parameters:
geom - geom the geometry from which to extract
geometryType - geometryType Geometry type to extract (null means all types)
list - list the list to add the extracted elements to
public static List extract(Geometry geom, Class clz)
Extracts the components of type clz from a Geometry and returns them in a List.
Parameters:
geom - geom the geometry from which to extract
Deprecation:
Use GeometryExtracter.extract(Geometry, String)
public static List extract(Geometry geom, String geometryType)
protected static boolean isOfType(Geometry geom, String geometryType)
public void filter(Geometry geom)