Nombre

ST_Z — Returns the Z coordinate of a Point.

Sinopsis

float ST_Z(geometry a_point);

Descripción

Devuelve la coordenada Z del punto, o NULL si no está disponible. La entrada debe ser un punto.

[Nota]

To get the minimum and maximum Z value of geometry coordinates use the functions ST_ZMin and ST_ZMax.

This method implements the SQL/MM specification.

This function supports 3d and will not drop the z-index.

Ejemplos

Code
SELECT ST_Z('POINT(1 2 3 4)');
Output
3