> ## 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_Zmflag (Python)

> Return the code indicating the ZM coordinate dimension of a geometry 2D = 0, 3D-M = 1, 3D-Z = 2, 4D = 3

Return the code indicating the ZM coordinate dimension of a geometry
2D = 0, 3D-M = 1, 3D-Z = 2, 4D = 3

SQL reference: [`ST_Zmflag`](/reference/wherobots-db/geometry-data/accessors/ST_Zmflag)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_functions import ST_Zmflag

ST_Zmflag(geom: ColumnOrName) -> Column
```

## Parameters

<ParamField path="geom" type="ColumnOrName" required>
  Geometry column
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Code for coordinate dimension of the geometry as an integer column.
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.