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

> Force the geometry column to only output two dimensional representations.

Force the geometry column to only output two dimensional representations.

<Warning>
  Deprecated since version 2.0.0. Use `ST_Force2D` instead.
</Warning>

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

## Signature

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

ST_Force_2D(geometry: ColumnOrName) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Geometry column to force to be 2D.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Geometry column identical to geometry except with only X and Y coordinates.
</ResponseField>


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