MBRTouches¶
TL;DR¶
MBRTouches returns whether two geometry minimum bounding rectangles touch without overlapping.
Syntax¶
MBRTouches(geom1, geom2)
Arguments¶
geom1 and geom2 are GEOMETRY values.
Return Value¶
Returns BOOL.
Usage Notes¶
The predicate evaluates the minimum bounding rectangles. A shared edge or corner is a boundary contact.
Examples¶
DROP DATABASE IF EXISTS geo_mbrtouches_demo;
CREATE DATABASE geo_mbrtouches_demo;
USE geo_mbrtouches_demo;
SELECT MBRTouches(ST_GeomFromText('POLYGON((0 0,10 0,10 10,0 10,0 0))'), ST_GeomFromText('POLYGON((10 0,20 0,20 10,10 10,10 0))')) AS touches_mbr;
DROP DATABASE geo_mbrtouches_demo;