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

> Collect multiple geometry columns or an array of geometries into a single multi-geometry or geometry collection.

Collect multiple geometry columns or an array of geometries into a single
multi-geometry or geometry collection.

SQL reference: [`ST_Collect`](/reference/wherobots-db/geometry-data/editors/ST_Collect)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_functions import ST_Collect

ST_Collect(*geometries: ColumnOrName) -> Column
```

## Parameters

<ParamField path="geometries" type="ColumnOrName">
  Either a single geometry column that holds an array of geometries or multiple geometry columns.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  If the types of geometries are homogeneous then a multi-geometry is returned, otherwise a geometry collection is returned.
</ResponseField>


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