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

Returns the coordinate dimensions of the geometry. It is an alias of `ST_NDims`.

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

## Signatures

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

## Parameters

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

## Return type

<ResponseField type="Integer">
  An integer value.
</ResponseField>

## Examples

```sql theme={"system"}
SELECT ST_CoordDim(ST_GeomFromText('POINT(1 1 2)'))
```

```
3
```

Spark SQL Example with x, y coordinate:

```sql theme={"system"}
SELECT ST_CoordDim(ST_GeomFromWKT('POINT(3 7)'))
```

```
2
```
