[MDEV-25132] centroid not even close to polygon in some cases Created: 2021-03-14 Updated: 2023-04-27 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | GIS |
| Affects Version/s: | 10.3.27, 10.5.9, 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Michael Richards | Assignee: | Alexey Botchkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | geometry | ||
| Environment: |
Ububtu 20.04, debian 9 |
||
| Attachments: |
|
| Description |
|
In some not so rare cases, when trying to get a centroid of a polygon, the point it returns is not even close to the polygon example:
Have tested this on MariaDB ver: 10.3.27 (what i'm using) and latest stable (10.5.9) it shows a point ~600m away from the polygon. trying the exact same on MySQL ver: 5.7.20 & 8.0.22, the point is where you would expect it. here is some GeoJSON to demonstrate the issue (use on GeoJSON.io):
It seems to be random, alter the polygon a little and it will work. its not just a freak accident as it has been brought up to me 8-10 times is the few months we have been using MariaDB over MySQL Results:
|