ST_Y — Returns the Y coordinate of a Point.
float ST_Y(geometry a_point);
Restituisce la coordinata Y del punto, o NULL se non disponibile. L'input deve essere un punto.
|
|
|
To get the minimum and maximum Y value of geometry coordinates use the functions ST_YMin and ST_YMax. |
Questo metodo implementa le OGC Simple Features Implementation Specification for SQL 1.1.
Questo metodo implementa la specifica SQL/MM. SQL-MM 3: 6.1.4
Questa funzione supporta il 3d e non distrugge gli z-index.
SELECT ST_Y(ST_GeomFromEWKT('POINT(1 2 3 4)'));
st_y
------
2
(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_X, ST_YMax, ST_YMin, ST_Z