public class PolygonExtracter extends java.lang.Object implements GeometryFilter
GeometryExtracter
Modifier and Type | Field and Description |
---|---|
private java.util.List |
comps |
Constructor and Description |
---|
PolygonExtracter(java.util.List comps)
Constructs a PolygonExtracterFilter with a list in which to store Polygons found.
|
Modifier and Type | Method and Description |
---|---|
void |
filter(Geometry geom)
Performs an operation with or on
geom . |
static java.util.List |
getPolygons(Geometry geom)
|
static java.util.List |
getPolygons(Geometry geom,
java.util.List list)
|
public PolygonExtracter(java.util.List comps)
public static java.util.List getPolygons(Geometry geom, java.util.List list)
geom
- the geometry from which to extractlist
- the list to add the extracted elements topublic static java.util.List getPolygons(Geometry geom)
geom
- the geometry from which to extractpublic void filter(Geometry geom)
GeometryFilter
geom
.filter
in interface GeometryFilter
geom
- a Geometry
to which the filter is applied.