[MDEV-7529] GIS: ST_Relate returns unexpected results for POINT relations Created: 2015-01-29  Updated: 2015-03-15  Resolved: 2015-03-15

Status: Closed
Project: MariaDB Server
Component/s: GIS
Affects Version/s: N/A
Fix Version/s: 10.1.4

Type: Bug Priority: Critical
Reporter: Elena Stepanova Assignee: Alexey Botchkov
Resolution: Fixed Votes: 0
Labels: gis

Issue Links:
Relates
relates to MDEV-7509 Testing for GIS extensions Closed

 Description   

Two identical points

ST_PointFromText('POINT(0 0)'),ST_PointFromText('POINT(0 0)')

Equals (T*F**FFF*)

MariaDB

MariaDB [test]> select ST_Relate(ST_PointFromText('POINT(0 0)'),ST_PointFromText('POINT(0 0)'),'T*F**FFF*') AS equals;
+--------+
| equals |
+--------+
|      0 |
+--------+
1 row in set (0.00 sec)

PostGIS

pgis=# select ST_Relate(ST_PointFromText('POINT(0 0)'),ST_PointFromText('POINT(0 0)'),'T*F**FFF*') AS equals;
 equals 
--------
 t
(1 row)

Same for Contains (T*****FF*), Covers (T*****FF*), Within (T*F**F***), Covered by (T*F**F***).

Two different points

ST_PointFromText('POINT(0 0)'),ST_PointFromText('POINT(1 1)')

Disjoint

MariaDB

MariaDB [test]> select ST_Relate(ST_PointFromText('POINT(0 0)'),ST_PointFromText('POINT(1 1)'),'FF*FF****') as disjoint;
+----------+
| disjoint |
+----------+
|        0 |
+----------+
1 row in set (0.00 sec)

PostGIS

pgis=# select ST_Relate(ST_PointFromText('POINT(0 0)'),ST_PointFromText('POINT(1 1)'),'FF*FF****') as disjoint;
 disjoint 
----------
 t
(1 row)



 Comments   
Comment by Alexey Botchkov [ 2015-03-15 ]

Fixing patch: http://lists.askmonty.org/pipermail/commits/2015-March/007596.html

Generated at Thu Feb 08 07:20:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.