|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vividsolutions.jts.geom.util.PolygonExtracter
public class PolygonExtracter
Extracts all the Polygon
elements from a Geometry
.
GeometryExtracter
Constructor Summary | |
---|---|
PolygonExtracter(java.util.List comps)
Constructs a PolygonExtracterFilter with a list in which to store Polygons found. |
Method Summary | |
---|---|
void |
filter(Geometry geom)
Performs an operation with or on geom . |
static java.util.List |
getPolygons(Geometry geom)
Extracts the Polygon elements from a single Geometry
and returns them in a List . |
static java.util.List |
getPolygons(Geometry geom,
java.util.List list)
Extracts the Polygon elements from a single Geometry
and adds them to the provided List . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolygonExtracter(java.util.List comps)
Method Detail |
---|
public static java.util.List getPolygons(Geometry geom, java.util.List list)
Polygon
elements from a single 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 getPolygons(Geometry geom)
Polygon
elements from a single Geometry
and returns them in a List
.
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.
|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |