Name

ST_MakeBox3D — Creates a BOX3D defined by the given 3d point geometries.

Synopsis

box3d ST_MakeBox3D(geometry point3DLowLeftBottom, geometry point3DUpRightTop);

Description

Creates a BOX3D defined by the given 2 3D point geometries.

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

Examples

SELECT ST_MakeBox3D(ST_MakePoint(-989502.1875, 528439.5625, 10),
	ST_MakePoint(-987121.375 ,529933.1875, 10)) As abb3d

--bb3d--
--------
BOX3D(-989502.1875 528439.5625 10,-987121.375 529933.1875 10)
	

See Also

ST_MakePoint, ST_SetSRID, ST_SRID