Nome

ST_X — Returns the X coordinate of a Point.

Sinossi

float ST_X(geometry a_point);

Descrizione

Restituisce la coordinata X del punto, o NULL se non disponibile. L'input deve essere un punto.

[Nota]

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.

Esempi

Code
SELECT ST_X('POINT(1 2 3 4)');
Output
1
Code
SELECT ST_Y(ST_Centroid('LINESTRING(1 2 3 4,1 1 1 1)'::geometry));
Output
1.5