JTS Core 1.17.1
Packages
Classes
Search
About
Top
PolygonExtracter(List)
getPolygons(Geometry, List): List
getPolygons(Geometry): List
filter(Geometry): void
Bottom
Source
Classic
org.locationtech.jts.geom.util
Class PolygonExtracter
Hierarchy:
Object
, PolygonExtracter
All Implemented Interfaces:
GeometryFilter
public class PolygonExtracter
implements
GeometryFilter
Extracts all the
Polygon
elements from a
Geometry
.
See also:
GeometryExtracter
Other
version: 1.7
public
PolygonExtracter(
List
comps)
Constructs a PolygonExtracterFilter with a list in which to store Polygons found.
public
static
List
getPolygons(
Geometry
geom,
List
list)
Extracts the
Polygon
elements from a single
Geometry
and adds them to the provided
List
.
Parameters:
geom - geom the geometry from which to extract
list - list the list to add the extracted elements to
public
static
List
getPolygons(
Geometry
geom)
Extracts the
Polygon
elements from a single
Geometry
and returns them in a
List
.
Parameters:
geom - geom the geometry from which to extract
public
void filter(
Geometry
geom)