Skip to main content
Returns the 3D bounding box of all geometries in A as a typed Box3D. Empty geometries and null values are skipped. If all inputs are empty or null, the result is null. Geometries without a Z dimension fold into z = 0. Mirrors PostGIS ST_3DExtent. ST_3DExtent is the 3D counterpart to ST_Extent, which returns a Box2D. ST_3DExtent aggregates a column of geometries into the enclosing cuboid

Signatures

Parameters

Geometry
required
The column of geometries to aggregate.

Return type

The 3D bounding box enclosing every geometry in the column.

Example

The XY-only linestring contributes z = 0, which sits between the -1 and 3 of the two POINT Z rows, so it does not move either Z bound.