ST_MakeBox2D

更新时间:
复制 MD 格式

Constructs a Box2D bounding box from a lower-left point and an upper-right point.

Syntax

box2d ST_MakeBox2D(geometry pointLowLeft, geometry pointUpRight);

Parameters

ParameterDescription
pointLowLeftThe point in the lower-left corner.
pointUpRightThe point in the upper-right corner.

Description

Use this function for range queries.

Examples

SELECT ST_MakeBox2D(ST_Point(115, 39), ST_Point(116, 40));
    st_makebox2d
--------------------
 BOX(115 39,116 40)
(1 row)