ST_MBRIntersects
Determine whether the minimum bounding rectangles (MBRs), sometimes called the
bounding boxes, of two geometries intersect. Two MBRs intersect if their DE-9IM intersection matrix is not FF*FF****
.
Syntax
ST_MBRIntersects(geo1, geo2);
- geo1
- The first input geometry.
Type: ST_GEOMETRY(ANY)
- geo2
- The second input geometry.
Type: ST_GEOMETRY(ANY)
Returns
A value of type BOOL that is TRUE if the MBRs of the two geometries intersect; otherwise FALSE.
Examples
SELECT inza..ST_MBRIntersects(inza..ST_WKTToSQL('POLYGON ((0 0, 11 0, 11 11, 0 11, 0
0))'), inza..ST_WKTToSQL('POLYGON ((10 10, 10 20, 20 20, 20 15, 10 10))'));
ST_MBRINTERSECTS
------------------
t
(1 row)