[MDEV-12915] ST_Centroid does not return the same result than MySQL Created: 2017-05-25 Updated: 2017-08-01 Resolved: 2017-07-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | GIS |
| Affects Version/s: | 10.1.14, 5.5, 10.0, 10.1, 10.2 |
| Fix Version/s: | 10.0.31 |
| Type: | Bug | Priority: | Major |
| Reporter: | Paul David-Sivelle | Assignee: | Alexey Botchkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream-fixed | ||
| Environment: |
CentOS 6.8 |
||
| Attachments: |
|
| Description |
|
Hi, The result of the ST_Centroid method does not seems correct. For the same request:
I get the following results:
The MySQL result seems to be the good one. You can find attached a screenshot of the concrete case, as displayed in my application. Sorry if the bug has been already opened, I didn't found any issue about this subject. |
| Comments |
| Comment by Elena Stepanova [ 2017-06-02 ] |
|
Thanks for the report. Also attached visualization done by QGIS/QuickWKT (mdev12915.png). Blue dot is MySQL 5.7, red dot is MariaDB. Reproducible on MariaDB 5.5 - 10.2, and on MySQL 5.6. Apparently it was fixed in MySQL 5.7. |
| Comment by Alexey Botchkov [ 2017-07-25 ] |
|
http://lists.askmonty.org/pipermail/commits/2017-July/011321.html |
| Comment by Daniel Black [ 2017-07-25 ] |
|
Alexey Kopytov and I ended up in a discussion (https://github.com/mysql/mysql-server/pull/158) that brought up https://github.com/mysql/mysql-server/commit/0a417e84 which is probably related to this issue. |