getPolygons static method

List getPolygons(
  1. Geometry geom
)

Extracts the {@link Polygon} elements from a single {@link Geometry} and returns them in a {@link List}.

@param geom the geometry from which to extract

Implementation

static List getPolygons(Geometry geom) {
  return getPolygonsWithList(geom, <Polygon>[]);
}