I am not so into database. Into a geospatial query I have something like this:
SELECT X(gps) AS longitude, Y(gps) AS latitude FROM MyTable
Where the gps field hve point as type.
And it returnes value like:
29,3715 -2,1790
My doubt is: what is the exact type of data returned by the previous X() and Y() function?
The documentation of MySQL function X()
explains:
ST_X()
andX()
are synonyms. For more information, see the description ofST_X()
.
X()
is deprecated as of MySQL 5.7.6 and will be removed in a future MySQL release.
UseST_X()
instead.
The documentation of ST_X()
says:
ST_X(P)
Returns the X-coordinate value for the
Point
objectp
as a double-precision number.