Functions That Test Spatial Relations Between Geometry Objects •For functions that take multiple geometry arguments, if those arguments are not in the same SRS, an ER_GIS_DIFFERENT_SRIDS  error occurs. •If any argument is geometrically invalid, either the result is true or false (it is undefined which), or an error occurs. •For geographic SRS geometry arguments, if any argument has a longitude or latitude that is out of range, an error occurs: • If a longitude value is not in the range ( − 180, 180], an ER_GEOMETRY_PARAM_LONGITUDE_OUT_OF_RANGE  error occurs ( ER_LONGITUDE_OUT_OF_RANGE prior to MySQL 8.0.12). • If a latitude value is not in the range [ − 90, 90], an  ER_GEOMETRY_PARAM_LATITUDE_OUT_OF_RANGE error occurs ( ER_LATITUDE_OUT_OF_RANGE  prior to MySQL 8.0.12). •Otherwise, the return value is non- NULL . • MBRContains( g1 ,  g2 ) • MBRCoveredBy( g1 ,  g2 ) • MBRCovers( g1 ,  g2 ) Returns 1 or 0 to indicate whether the minimum bounding rectangle of  g1  is covered by the minimum bounding rectangle of  g2 . This tests the opposite relationship as  MBRCovers() . MBRCoveredBy()  handles its arguments as described in the introduction to this section. Returns 1 or 0 to indicate whether the minimum bounding rectangle of  g1  contains the minimum bounding rectangle of  g2 . This tests the opposite relationship as  MBRWithin() . MBRContains()  handles its arguments as described in the introduction to this section. Ranges shown are in degrees. If an SRS uses another unit, the range uses the corresponding values in its unit. The exact range limits deviate slightly due to floating-point arithmetic. These MBR functions are available for testing geometry relationships: mysql>  SET @g1 = ST_GeomFromText(’Polygon((0 0,0 3,3 3,3 0,0 0))’); mysql>  SET @g2 = ST_GeomFromText(’Point(1 1)’); mysql>  SELECT MBRContains(@g1,@g2), MBRWithin(@g2,@g1); mysql>  SET @g1 = ST_GeomFromText(’Polygon((0 0,0 3,3 3,3 0,0 0))’); mysql>  SET @g2 = ST_GeomFromText(’Point(1 1)’); mysql>  SELECT MBRCovers(@g1,@g2), MBRCoveredby(@g1,@g2); mysql>  SELECT MBRCovers(@g2,@g1), MBRCoveredby(@g2,@g1); +--------------------+-----------------------+ | MBRCovers(@g2,@g1) | MBRCoveredby(@g2,@g1) | +--------------------+-----------------------+ | 0 | 1 | +--------------------+-----------------------+ +--------------------+-----------------------+ | MBRCovers(@g1,@g2) | MBRCoveredby(@g1,@g2) | +--------------------+-----------------------+ | 1 | 0 | +--------------------+-----------------------+ +----------------------+--------------------+ | MBRContains(@g1,@g2) | MBRWithin(@g2,@g1) | +----------------------+--------------------+ | 1 | 1 | +----------------------+--------------------+ 2331