Geometry Property Analysis Functions
Point Property Analysis Functions
LineString Property Analysis Functions
MultiLineString Property Analysis Functions
Polygon Property Analysis Functions
MultiPolygon Property Analysis Functions
GeometryCollection Property Analysis Functions
Point Property Analysis Functions
A Point consists of its X and Y coordinates, which may be obtained
using the following functions:
X(p)
p as a double-precision
number.
mysql> SELECT X(GeomFromText('Point(56.7 53.34)'));
+--------------------------------------+
| X(GeomFromText('Point(56.7 53.34)')) |
+--------------------------------------+
| 56.7 |
+--------------------------------------+
Y(p)
p as a double-precision
number.
mysql> SELECT Y(GeomFromText('Point(56.7 53.34)'));
+--------------------------------------+
| Y(GeomFromText('Point(56.7 53.34)')) |
+--------------------------------------+
| 53.34 |
+--------------------------------------+