> ## 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_PointZ

Construct a Point from X, Y and Z and an optional srid. If srid is not set, it defaults to 0 (unknown).
Must use ST\_AsEWKT function to print the Z coordinate.

## Signatures

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

```sql theme={"system"}
ST_PointZ (X: Double, Y: Double, Z: 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="srid" type="Integer">
  Spatial Reference Identifier.
</ParamField>

## Return type

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

## Example

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

```
POINT Z(1.2345 2.3456 3.4567)
```
