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

> Return a geometry with a 3D coordinate of value 'mValue' forced upon it.

Return a geometry with a 3D coordinate of value 'mValue' forced upon it. No change happens if the geometry is already 3D

SQL reference: [`ST_Force3DM`](/reference/wherobots-db/geometry-data/editors/ST_Force3DM)

## Signature

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

ST_Force3DM(
    geometry: ColumnOrName,
    mValue: Optional[Union[ColumnOrName, float]] = 0.0,
) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Geometry column to make 3D
</ParamField>

<ParamField path="mValue" type="Optional[Union[ColumnOrName, float]]" default="0.0">
  Optional value of m coordinate to be potentially added, default value is 0.0
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  3D geometry with either already present m coordinate if any, or m coordinate with given mValue
</ResponseField>


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