Bug #249 | Spatial extension (GIS) returns wrong result for "touches" function | ||
---|---|---|---|
Submitted: | 8 Apr 2003 5:15 | Modified: | 8 Apr 2003 21:41 |
Reporter: | Stepan Rybar | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.1 | OS: | Windows (MS Windows NT 5.1 (XP)) |
Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
[8 Apr 2003 5:15]
Stepan Rybar
[8 Apr 2003 5:57]
Stepan Rybar
If it will be helpful, I created an picture of all these polygons with coordinates for better overview. It is 16 kB PNG file avaiable on "http://www.sweb.cz/xrybs01/MySQLBug249.png" or on request by mail. Stepan
[8 Apr 2003 6:25]
Stepan Rybar
Another problem with the same data, polygons 4 a 5 and function "contains". Polygon 4 has interior ring, which is fully covered by polygon 5. When I run query mysql> select id from counties where contains(geometry, (select geometry from counties where id = 5)); it result in +----+ | id | +----+ | 4 | | 5 | +----+ 2 rows in set (0.00 sec) althought I guess only polygon 5 shlould appear. Hope I correctly understand spatial relationship. Stepan
[8 Apr 2003 7:15]
Ramil Kalimullin
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.mysql.com/documentation/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Thank you for your report, but this is expected behavior. MySQL supports only MBR-based spatial fuctions. Please take a look at http://www.mysql.com/documentation/mysql/bychapter/manual_GIS_spatial_extensions_in_MySQL.html#GIS_functions_that_test_spatial_relationships_between_geometries
[8 Apr 2003 7:56]
Stepan Rybar
Yes, but MBR based functions should start with MBR..... These functons are already in MySQL 4.1. But I was confused, that functions without MBR as a prefix in their names behave in the same way as MBR functions. This was an error according to me. Anyway, in which version is planned to add nonMBR spatial relation functions? Thank You Stepan
[8 Apr 2003 21:41]
Ramil Kalimullin
I hope it will be available in 5.0 branch in 1-2 months. Thanks for your interest.