Class: PolygonExtracter

jsts.geom.util.PolygonExtracter

new PolygonExtracter(comps)

Extracts all the Polygon elements from a Geometry. Constructs a PolygonExtracterFilter with a list in which to store Polygons found.
Parameters:
Name Type Description
comps Array
Source:
See:
  • GeometryExtracter

Extends

Methods

(static) getPolygons(geom, list) → {Array}

Extracts the Polygon elements from a single Geometry and adds them to the provided List.
Parameters:
Name Type Description
geom jsts.geom.Geometry the geometry from which to extract.
list Array the list to add the extracted elements to.
Source:
Returns:
Type
Array

filter(geom)

Parameters:
Name Type Description
geom jsts.geom.Geometry
Overrides:
Source: