> ## 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_Union_Agg

Return the polygon union of all polygons in A

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

## Signatures

```sql theme={"system"}
ST_Union_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_Union_Aggr`, which is deprecated since `v1.8.1`.
</Note>

## Example

```sql theme={"system"}
SELECT ST_Union_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)'))
```

```
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))
```
