envelope function

Feature<Polygon> envelope(
  1. GeoJSONObject geojson
)

Returns a rectangular Polygon (envelope) that fully contains the given GeoJSON object.

Implementation

Feature<Polygon> envelope(GeoJSONObject geojson) {
  return bboxPolygon(bbox(geojson));
}