# accessors

This module contains functions that provide information about internal geometries.

## ST\_ENVELOPE\_ARR <a href="#st_envelope_arr" id="st_envelope_arr"></a>

```sql
ST_ENVELOPE_ARR(geojsons)
```

**Description**

Takes any number of features and returns a rectangular Polygon that encompasses all vertices.

**Input parameters**

* `geojsons`: `ARRAY` array of features in GeoJSON format casted to STRING.

**Return type**

`GEOGRAPHY`

**Example**

```sql
SELECT CARTO.CARTO.ST_ENVELOPE_ARR(
  ARRAY_CONSTRUCT(
    ST_ASGEOJSON(ST_POINT(-75.833, 39.284))::STRING,
    ST_ASGEOJSON(ST_POINT(-75.6, 39.984))::STRING,
    ST_ASGEOJSON(ST_POINT(-75.221, 39.125))::STRING
  )
);
-- { "coordinates": [ [ [ -75.833, 39.125 ], [ -75.221, 39.125 ], [ -75.221, 39.984 ], ...
```

{% hint style="info" %}
**Additional examples**

* [Analyzing store location coverage using a Voronoi diagram](https://academy.carto.com/advanced-spatial-analytics/spatial-analytics-for-snowflake/step-by-step-tutorials/analyzing-store-location-coverage-using-a-voronoi-diagram)
  {% endhint %}
