12.17.9.2 Spatial Relation Functions That Use Minimum Bounding Rectangles使用最小边界矩形的空间关系函数

MySQL provides several MySQL-specific functions that test the relationship between minimum bounding rectangles (MBRs) of two geometries g1 and g2. MySQL提供了几个特定于MySQL的函数,用于测试两种几何体g1g2的最小边界矩形(MBR)之间的关系。The return values 1 and 0 indicate true and false, respectively.返回值1和0分别表示truefalse

The bounding box of a point is interpreted as a point that is both boundary and interior.点的边界框被解释为既是边界又是内部的点。

The bounding box of a straight horizontal or vertical line is interpreted as a line where the interior of the line is also boundary. 水平直线或垂直直线的边界框被解释为直线内部也是边界的直线。The endpoints are boundary points.端点是边界点。

If any of the parameters are geometry collections, the interior, boundary, and exterior of those parameters are those of the union of all elements in the collection.如果任何参数是几何体集合,则这些参数的内部、边界和外部是集合中所有元素的并集的内部、边界和外部。

Functions in this section detect arguments in either Cartesian or geographic spatial reference systems (SRSs), and return results appropriate to the SRS.本节中的函数检测笛卡尔坐标系或地理空间参考系(SRS)中的参数,并返回适合SRS的结果。

Unless otherwise specified, functions in this section handle their geometry arguments as follows:除非另有规定,否则本节中的函数按如下方式处理其几何参数:

These MBR functions are available for testing geometry relationships:这些MBR函数可用于测试几何关系: