Oracle 5.0 Reference Manual page 1017

Table of Contents

Advertisement

MBREqual(g1,g2)
Returns 1 or 0 to indicate whether the Minimum Bounding Rectangles of the two geometries
are the same.
g2
MBRIntersects(g1,g2)
Returns 1 or 0 to indicate whether the Minimum Bounding Rectangles of the two geometries
intersect.
g2
MBROverlaps(g1,g2)
Returns 1 or 0 to indicate whether the Minimum Bounding Rectangles of the two geometries
overlap. The term spatially overlaps is used if two geometries intersect and their intersection
g2
results in a geometry of the same dimension but not equal to either of the given geometries.
MBRTouches(g1,g2)
Returns 1 or 0 to indicate whether the Minimum Bounding Rectangles of the two geometries
touch. Two geometries spatially touch if the interiors of the geometries do not intersect, but the
g2
boundary of one of the geometries intersects either the boundary or the interior of the other.
MBRWithin(g1,g2)
Returns 1 or 0 to indicate whether the Minimum Bounding Rectangle of
Bounding Rectangle of g2. This tests the opposite relationship as
mysql>
SET @g1 = GeomFromText('Polygon((0 0,0 3,3 3,3 0,0 0))');
mysql>
SET @g2 = GeomFromText('Polygon((0 0,0 5,5 5,5 0,0 0))');
mysql>
SELECT MBRWithin(@g1,@g2), MBRWithin(@g2,@g1);
+--------------------+--------------------+
| MBRWithin(@g1,@g2) | MBRWithin(@g2,@g1) |
+--------------------+--------------------+
|
+--------------------+--------------------+
12.16.5.4.2. Functions That Test Spatial Relationships Between Geometries
The OpenGIS specification defines the following functions. They test the relationship between two
geometry values
The return values 1 and 0 indicate true and false, respectively.
Contains(g1,g2)
Returns 1 or 0 to indicate whether
Within()
Crosses(g1,g2)
Returns 1 if
is a
Point
The term spatially crosses denotes a spatial relation between two given geometries that has the
following properties:
• The two geometries intersect
Spatial Analysis Functions
[997]
[997]
[997]
[997]
[997]
1 |
and g2.
g1
Note
Currently, MySQL does not implement these functions according to the
specification. Those that are implemented return the same result as the
corresponding MBR-based functions.
[997]
[998].
[997]
spatially crosses g2. Returns
g1
or a MultiPoint. Otherwise, returns 0.
0 |
completely contains g2. This tests the opposite relationship as
g1
if
is a
NULL
g1
997
is within the Minimum
g1
MBRContains()
or a MultiPolygon, or if
Polygon
and
g1
and
g1
and
g1
and
g1
[996].
g2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents