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

> Aggregate Function: Get the 3D bounding box (Box3D) of a geometry column.

Aggregate Function: Get the 3D bounding box (Box3D) of a geometry column.

Returns NULL when the input contains no rows or all rows are null/empty
geometries. Geometries without a Z dimension contribute `z = 0` per
coordinate, matching PostGIS. Mirrors PostGIS ST\_3DExtent.

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

## Signature

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

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

## Parameters

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

## Returns

<ResponseField name="return" type="Column">
  Box3D representing the union of 3D bounding boxes of the geometry column.
</ResponseField>


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