제목

ST_Z — Returns the Z coordinate of a Point.

요약

float ST_Z(geometry a_point);

설명

포인트의 Z 좌표를 반환합니다. Z 좌표가 없는 경우 NULL을 반환합니다. 포인트만 입력받을 수 있습니다.

[참고]

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.

예시

Code
SELECT ST_Z('POINT(1 2 3 4)');
래스터 출력
3