I have a polygon that contains multiple coordinates in MariaDB:
POLYGON((50.4668 -6.90665,51.73607 0.14657,55.3032 -4.52724,50.4668 -6.90665))
I want to calculate area of this polygon with MariaDB like this:
SELECT ST_Area(ST_GeomFromText('POLYGON((50.4668 -6.90665,51.73607 0.14657,55.3032 -4.52724,50.4668 -6.90665))'))
The result of the above query is 15.546039738650009
which is wrong. I calculated the area of the polygon with this tool and it gives me 119116192747.1
.
What should I do to make mariaDB understand this polygon contains latitude and longitudes to calculate area correctly?