getPolygons static method
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>[]);
}