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

Checks for the presence of Z coordinate values representing measures or linear references. Returns true if the input geometry includes an Z coordinate, false otherwise.

<img src="https://mintcdn.com/wherobots/fqh3gPDE0J25Lra_/images/sql-functions/ST_HasZ/ST_HasZ.svg?fit=max&auto=format&n=fqh3gPDE0J25Lra_&q=85&s=c5a63c72c09140c99155c2046a65ff60" alt="ST_HasZ" width="500" height="300" data-path="images/sql-functions/ST_HasZ/ST_HasZ.svg" />

## Signatures

```sql theme={"system"}
ST_HasZ(geom: Geometry)
```

## Parameters

<ParamField body="geom" type="Geometry" required>
  The input geometry.
</ParamField>

## Return type

<ResponseField type="Boolean">
  Returns `true` or `false`.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_HasZ(
        ST_GeomFromWKT('LINESTRING Z (30 10 5, 40 40 10, 20 40 15, 10 20 20)')
)
```

```
true
```
