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

> Return a geometry with a 4D coordinate of value 'zValue' and mValue forced upon it.

Return a geometry with a 4D coordinate of value 'zValue' and mValue forced upon it. No change happens if the
geometry is already 4D, if geometry either has z or m, it will not change the existing z or m value.

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

## Signature

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

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

## Parameters

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

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

<ParamField path="mValue" type="Optional[Union[ColumnOrName, float]]" default="0.0" />

## Returns

<ResponseField name="return" type="Column">
  4D geometry with either already 4D geom or z and m component provided by zValue and mValue respectively
</ResponseField>


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