Name

ST_Box3D — Returns a Polygon geometry representation of the three-dimensional bounding box

Synopsis

geometry ST_Box3D(bytea Geometry);

Alias

Box3D

Description

Returns a Polygon geometry representation of the three-dimensional bounding box. The resulting Polygon will have the same SRID and coordinates units of the original geometries.

Coordinate Dimensions
2D3DM

-

Spatial Standards Support
OGC SFS for SQL. 1.1 (1999)OGC SFS for SQL. 1.1.0 (2005)OGC SFS for SQL. 1.2.0 (2006)SQL-MM Part 3
----

Examples

SELECT ST_AsText(Box3D(ST_GeomFromText('LINESTRING (1 1 -5, 2 3 10, 3 2 5, 4 4 0)')));
--Result
POLYGON ((1 1 -5, 1 4 10, 4 4 10, 4 1 -5, 1 1 -5))

Related functions

ST_Box2D,ST_Box