Name

ST_Box3D — Returns a BOX3D representing the maximum extents of the geometry.

Synopsis

box3d ST_Box3D(geometry geomA);

Description

Returns a BOX3D representing the maximum extents of the geometry.

This function supports 3d and will not drop the z-index.

This method supports Circular Strings and curves

Examples

SELECT ST_Box3D(ST_GeomFromEWKT('LINESTRING(1 2 3, 3 4 5, 5 6 5)'));
	st_box3d
	---------
	BOX3D(1 2 3,5 6 5)

	SELECT ST_Box3D(ST_GeomFromEWKT('CIRCULARSTRING(220268 150415 1,220227 150505 1,220227 150406 1)'));
	st_box3d
	--------
	BOX3D(220227 150406 1,220268 150415 1)
	

See Also

ST_Box2D, ST_GeomFromEWKT