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

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

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

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

## Signature

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

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

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Geometry column to make 3D
</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>

## Returns

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


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