> ## 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_Collect_Agg (Python)

> Aggregate Function: Collect all geometries into a multi-geometry.

Aggregate Function: Collect all geometries into a multi-geometry.

Unlike ST\_Union\_Aggr, this function does not dissolve boundaries between geometries.
It simply collects all geometries into a MultiPoint, MultiLineString, MultiPolygon,
or GeometryCollection based on the input geometry types.

SQL reference: [`ST_Collect_Agg`](/reference/wherobots-db/geometry-data/aggregate/ST_Collect_Agg)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_aggregates import ST_Collect_Agg

ST_Collect_Agg(geometry: ColumnOrName) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Geometry column to aggregate.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Multi-geometry representing the collection of all geometries in the column.
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.