Package org.meteoinfo.jts.geom.util
Class PolygonExtracter
- java.lang.Object
-
- org.meteoinfo.jts.geom.util.PolygonExtracter
-
- All Implemented Interfaces:
GeometryFilter
public class PolygonExtracter extends java.lang.Object implements GeometryFilter
- 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 voidfilter(Geometry geom)Performs an operation with or ongeom.static java.util.ListgetPolygons(Geometry geom)static java.util.ListgetPolygons(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:GeometryFilterPerforms an operation with or ongeom.- Specified by:
filterin interfaceGeometryFilter- Parameters:
geom- aGeometryto which the filter is applied.
-
-