Package org.locationtech.jts.geom.util
Class PolygonExtracter
- java.lang.Object
-
- org.locationtech.jts.geom.util.PolygonExtracter
-
- All Implemented Interfaces:
GeometryFilter
public class PolygonExtracter extends java.lang.Object implements GeometryFilter
- Version:
- 1.7
- See Also:
GeometryExtracter
-
-
Constructor Summary
Constructors Constructor Description PolygonExtracter(java.util.List comps)
Constructs a PolygonExtracterFilter with a list in which to store Polygons found.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(Geometry geom)
Performs an operation with or ongeom
.static java.util.List
getPolygons(Geometry geom)
static java.util.List
getPolygons(Geometry geom, java.util.List list)
-
-
-
Method Detail
-
getPolygons
public static java.util.List getPolygons(Geometry geom, java.util.List list)
- Parameters:
geom
- the geometry from which to extractlist
- the list to add the extracted elements to
-
getPolygons
public static java.util.List getPolygons(Geometry geom)
- Parameters:
geom
- the geometry from which to extract
-
filter
public void filter(Geometry geom)
Description copied from interface:GeometryFilter
Performs an operation with or ongeom
.- Specified by:
filter
in interfaceGeometryFilter
- Parameters:
geom
- aGeometry
to which the filter is applied.
-
-