This topic describes the ST_M function. This function returns the m coordinate of the input geometry object. The input geometry object must be a point object.
Syntax
float ST_M(geometry aPoint);
Parameters
Parameter | Description |
---|---|
aPoint | The point object that you want to specify. |
Description
This function supports 3D objects and does not delete z coordinates.
Examples
SELECT ST_M('POINTM(0 1 2)'::geometry);
st_m
------
2
(1 row)