Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
测试点是否位于由指定为 min 和 max 的两个点所定义的框内。
ST_IntersectsRect(location,min,max)
location
ST_Geometry
要测试的点。
min
用于定义框的最小点值。
max
用于定义框的最大点值。
BIT 如果 location 与指定框相交则返回 1,否则返回 0。
以下语句返回结果 1:
1
SELECT ST_IntersectsRect(ST_Point(1,1,4326),ST_Point(0,0,4326), ST_Point(3,3,4326))