The OpenGIS specification defines the following functions that
test the relationship between two geometry values
g1 and g2. The MySQL
implementation uses minimum bounding rectangles, so these
functions return the same result as the corresponding MBR-based
functions. The return values 1 and 0 indicate true and false,
respectively.
Returns 1 or 0 to indicate whether
g1 completely contains
g2. This tests the opposite
relationship as Within().
Returns 1 or 0 to indicate whether
g1 is spatially disjoint from
(does not intersect) g2.
Returns 1 or 0 to indicate whether
g1 is spatially equal to
g2.
Returns 1 or 0 to indicate whether
g1 spatially intersects
g2.
Returns 1 or 0 to indicate whether
g1 spatially overlaps
g2. The term spatially
overlaps is used if two geometries intersect and
their intersection results in a geometry of the same
dimension but not equal to either of the given geometries.
Returns 1 or 0 to indicate whether
g1 is spatially within
g2. This tests the opposite
relationship as Contains().