> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_PointZM

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

```sql theme={"system"}
ST_PointZM (X: Double, Y: Double, Z: Double, M: Double)
```

```sql theme={"system"}
ST_PointZM (X: Double, Y: Double, Z: Double, M: Double, srid: Integer)
```

## Parameters

<ParamField body="X" type="Double" required>
  The X coordinate (longitude).
</ParamField>

<ParamField body="Y" type="Double" required>
  The Y coordinate (latitude).
</ParamField>

<ParamField body="Z" type="Double" required>
  The Z coordinate (elevation).
</ParamField>

<ParamField body="M" type="Double" required>
  The M coordinate (measure).
</ParamField>

<ParamField body="srid" type="Integer">
  Spatial Reference Identifier.
</ParamField>

## Return type

<ResponseField type="Geometry">
  The resulting geometry.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_AsEWKT(ST_PointZM(1.2345, 2.3456, 3.4567, 100))
```

```
POINT ZM(1.2345 2.3456 3.4567, 100)
```
