MBROverlaps¶
TL;DR¶
MBROverlaps returns whether two minimum bounding rectangles partially overlap.
Syntax¶
MBROverlaps(geom1, geom2)
Arguments¶
geom1 and geom2 are GEOMETRY values.
Return Value¶
Returns BOOL.
Usage Notes¶
Containment and boundary-only contact do not count as an overlap. The predicate evaluates only bounding rectangles.
Examples¶
DROP DATABASE IF EXISTS geo_mbroverlaps_demo;
CREATE DATABASE geo_mbroverlaps_demo;
USE geo_mbroverlaps_demo;
SELECT MBROverlaps(ST_GeomFromText('POLYGON((0 0,10 0,10 10,0 10,0 0))'), ST_GeomFromText('POLYGON((5 5,15 5,15 15,5 15,5 5))')) AS overlaps_mbr;
DROP DATABASE geo_mbroverlaps_demo;