Skip to main content
Forces the geometry into XYM mode. Retains any existing M coordinate, but removes the Z coordinate if present. Assigns a default M value of 0.0 if mValue is not specified.
Example output is after calling ST_AsText() on returned geometry, which adds M for in the WKT.
ST_Force3DM

Signatures

Parameters

geometry
Geometry
required
The input geometry.
mValue
Double
default:"0.0"
required
The M (measure) coordinate value to assign. Defaults to 0.0 if not specified.

Return type

The resulting geometry.

Examples