MBRWITHIN()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Enterprise Server
Topics on this page:
Overview
A description for this Function has not yet been added to this Documentation.
EXAMPLES
SET @poly1 = ST_GeomFromText('Polygon((1 1,0 5,5 5,5 0,1 1))');
SET @pt1 = ST_GeomFromText('Point(2 2)');
SELECT MBRContains(@poly1,@pt1), MBRWithin(@pt1,@poly1);
+--------------------------+------------------------+
| MBRContains(@poly1,@pt1) | MBRWithin(@pt1,@poly1) |
+--------------------------+------------------------+
| 1 | 1 |
+--------------------------+------------------------+
SET @poly1 = ST_GeomFromText('Polygon((0 0,0 1,1 1,1 0,0 0))');
SET @poly2 = ST_GeomFromText('Polygon((0 0,0 2,2 2,2 0,0 0))');
SELECT MBRWithin(@poly1,@poly2), MBRWithin(@poly2,@poly1);
+--------------------------+--------------------------+
| MBRWithin(@poly1,@poly2) | MBRWithin(@poly2,@poly1) |
+--------------------------+--------------------------+
| 1 | 0 |
+--------------------------+--------------------------+
CHANGE HISTORY
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.