|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jts.geom.util.GeometryExtracter
public class GeometryExtracter
Extracts the components of a given type from a Geometry.
| Constructor Summary | |
|---|---|
GeometryExtracter(Class clz,
List comps)
Constructs a filter with a list in which to store the elements found. |
|
| Method Summary | |
|---|---|
static List |
extract(Geometry geom,
Class clz)
Extracts the components of type clz from a Geometry
and returns them in a List. |
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. |
void |
filter(Geometry geom)
Performs an operation with or on geom. |
protected static boolean |
isOfClass(Object o,
Class clz)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeometryExtracter(Class clz,
List comps)
clz - the class of the components to extract (null means all types)comps - the list to extract into| Method Detail |
|---|
protected static boolean isOfClass(Object o,
Class clz)
public static List extract(Geometry geom,
Class clz,
List list)
Geometry
and adds them to the provided List.
geom - the geometry from which to extractlist - the list to add the extracted elements to
public static List extract(Geometry geom,
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||