Skip to main content
Construct a Point from X, Y, Z, M and an optional srid. If srid is not set, it defaults to 0 (unknown). Must use ST_AsEWKT function to print the Z and M coordinates.

Signatures

ST_PointZM (X: Double, Y: Double, Z: Double, M: Double)
ST_PointZM (X: Double, Y: Double, Z: Double, M: Double, srid: Integer)

Parameters

X
Double
required
The X coordinate (longitude).
Y
Double
required
The Y coordinate (latitude).
Z
Double
required
The Z coordinate (elevation).
M
Double
required
The M coordinate (measure).
srid
Integer
Spatial Reference Identifier.

Return type

The resulting geometry.

Example

SELECT ST_AsEWKT(ST_PointZM(1.2345, 2.3456, 3.4567, 100))
POINT ZM(1.2345 2.3456 3.4567, 100)