ST_X — Returns the X coordinate of a Point.
float ST_X(geometry a_point);
Restituisce la coordinata X del punto, o NULL se non disponibile. L'input deve essere un punto.
|
|
|
To get the minimum and maximum X value of geometry coordinates use the functions ST_XMin and ST_XMax. |
Questo metodo implementa la specifica SQL/MM. SQL-MM 3: 6.1.3
Questa funzione supporta il 3d e non distrugge gli z-index.
SELECT ST_X(ST_GeomFromEWKT('POINT(1 2 3 4)'));
st_x
------
1
(1 row)
SELECT ST_Y(ST_Centroid(ST_GeomFromEWKT('LINESTRING(1 2 3 4, 1 1 1 1)')));
st_y
------
1.5
(1 row)
ST_Centroid, ST_GeomFromEWKT, ST_M, ST_XMax, ST_XMin, ST_Y, ST_Z