> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_Envelope_Agg

Return the entire envelope boundary of all geometries in A. Empty geometries and null values are skipped. If all inputs are empty or null, the result is null. This behavior is consistent with PostGIS's `ST_Extent`.

<img src="https://mintcdn.com/wherobots/fqh3gPDE0J25Lra_/images/sql-functions/ST_Envelope_Agg/ST_Envelope_Agg.svg?fit=max&auto=format&n=fqh3gPDE0J25Lra_&q=85&s=646fc3d9f78d1311ae1b89439611bfc7" alt="ST_Envelope_Agg" width="400" height="130" data-path="images/sql-functions/ST_Envelope_Agg/ST_Envelope_Agg.svg" />

## Signatures

```sql theme={"system"}
ST_Envelope_Agg (A: geometryColumn)
```

## Parameters

<ParamField body="A" type="geometryColumn" required>
  The input geometry.
</ParamField>

## Return type

<ResponseField type="Geometry">
  The resulting geometry.
</ResponseField>

<Note>
  This function was previously named `ST_Envelope_Aggr`, which is deprecated since `v1.8.1`.
</Note>

## Example

```sql theme={"system"}
SELECT ST_Envelope_Agg(ST_GeomFromText('MULTIPOINT(1.1 101.1,2.1 102.1,3.1 103.1,4.1 104.1,5.1 105.1,6.1 106.1,7.1 107.1,8.1 108.1,9.1 109.1,10.1 110.1)'))
```

```
POLYGON ((1.1 101.1, 1.1 120.1, 20.1 120.1, 20.1 101.1, 1.1 101.1))
```
