PostGIS
Description
Creates a box3d defined by two 3D Point geometries.
This function supports 3D and will not drop the z-index.
Changed: 2.0.0 In prior versions this used to be called ST_MakeBox3D
Examples
SELECT ST_3DMakeBox(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)