1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-12915 ST_Centroid does not return the same result than MySQL.

Calculation of the polygon's centroid fixed.
This commit is contained in:
Alexey Botchkov
2017-07-25 10:57:25 +04:00
committed by Sergei Golubchik
parent f8736063de
commit 7f5a8f176a
4 changed files with 29 additions and 14 deletions

View File

@ -326,8 +326,8 @@ fid IsClosed(g)
116 0
SELECT fid, AsText(Centroid(g)) FROM gis_multi_polygon ORDER by fid;
fid AsText(Centroid(g))
117 POINT(55.58852775304245 17.426536064113982)
118 POINT(55.58852775304245 17.426536064113982)
117 POINT(57.98031067576927 17.854754130800433)
118 POINT(57.98031067576927 17.854754130800433)
119 POINT(2 2)
SELECT fid, Area(g) FROM gis_multi_polygon ORDER by fid;
fid Area(g)