Name

ST_M — Return the M coordinate of the point, or NULL if not available. Input must be a point.

Synopsis

float ST_M(geometry a_point);

Description

Return the M coordinate of the point, or NULL if not available. Input must be a point.

[Note]

This is not (yet) part of the OGC spec, but is listed here to complete the point coordinate extractor function list.

This method implements the OpenGIS Simple Features Implementation Specification for SQL.

This method implements the SQL/MM specification: SQL-MM 3 New standard: ?

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

Examples

SELECT ST_M(ST_GeomFromEWKT('POINT(1 2 3 4)'));
 st_m
------
	4
(1 row)

		

See Also

ST_GeomFromEWKT, ST_X, ST_Y, ST_Z