com.vividsolutions.jts.geom.util
public class GeometryExtracter extends java.lang.Object implements GeometryFilter
Geometry.| Constructor and Description |
|---|
GeometryExtracter(java.lang.Class clz,
java.util.List comps)
Constructs a filter with a list in which to store the elements found.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List |
extract(Geometry geom,
java.lang.Class clz)
Extracts the components of type clz from a
Geometry
and returns them in a List. |
static java.util.List |
extract(Geometry geom,
java.lang.Class clz,
java.util.List list)
Extracts the components of type clz from a
Geometry
and adds them to the provided List. |
void |
filter(Geometry geom)
Performs an operation with or on
geom. |
protected static boolean |
isOfClass(java.lang.Object o,
java.lang.Class clz) |
public GeometryExtracter(java.lang.Class clz,
java.util.List comps)
clz - the class of the components to extract (null means all types)comps - the list to extract intoprotected static boolean isOfClass(java.lang.Object o,
java.lang.Class clz)
public static java.util.List extract(Geometry geom, java.lang.Class clz, java.util.List list)
Geometry
and adds them to the provided List.geom - the geometry from which to extractlist - the list to add the extracted elements topublic static java.util.List extract(Geometry geom, java.lang.Class clz)
Geometry
and returns them in a List.geom - the geometry from which to extractpublic void filter(Geometry geom)
GeometryFiltergeom.filter in interface GeometryFiltergeom - a Geometry to which the filter is applied.