This topic describes the ST_MakePointM function. This function constructs a PointM object by using x, y, and m coordinates.

Syntax

geometry  ST_MakePointM(float  x , float  y , float  m);

Parameters

Parameter Description
x The x coordinate, which specifies the longitude of the PointM object.
y The y coordinate, which specifies the latitude of the PointM object.
m The m coordinate of the PointM object.

Examples

SELECT ST_AsEWKT(ST_MakePointM(1,2,3));
   st_asewkt
---------------
 POINTM(1 2 3)
(1 row)