This topic describes the ST_3DMakeBox function. This function constructs a Box3D object by using a point in the lower-left corner and a point in the upper-right corner.

Syntax

box3d  ST_3DMakeBox(geometry  point3DLowLeftBottom , geometry  point3DUpRightTop);

Parameters

Parameter Description
point3DLowLeftBottom The point in the lower-left corner.
point3DUpRightTop The point in the upper-right corner.

Description

This function supports 3D objects and does not discard the z-index of the geometry object that is constructed.

Examples

SELECT ST_3DMakeBox(ST_MakePoint(115, 39, 10), ST_MakePoint(116, 40, 10));
        st_3dmakebox
----------------------------
 BOX3D(115 39 10,116 40 10)
(1 row)