> ## 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

Forces the geometries into a "2-dimensional mode" so that all output representations will only have the X and Y coordinates. This function is an alias of [ST\_Force2D](/reference/wherobots-db/geometry-data/editors/ST_Force2D).

<img src="https://mintcdn.com/wherobots/fqh3gPDE0J25Lra_/images/sql-functions/ST_Force_2D/ST_Force_2D.svg?fit=max&auto=format&n=fqh3gPDE0J25Lra_&q=85&s=c7889e1af9a66dac6368de491097b66e" alt="ST_Force_2D" width="500" height="300" data-path="images/sql-functions/ST_Force_2D/ST_Force_2D.svg" />

## Signatures

```sql theme={"system"}
ST_Force_2D (A: Geometry)
```

## Parameters

<ParamField body="A" type="Geometry" required>
  The input geometry.
</ParamField>

## Return type

<ResponseField type="Geometry">
  The resulting geometry.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_Force_2D(ST_GeomFromText('POLYGON((0 0 2,0 5 2,5 0 2,0 0 2),(1 1 2,3 1 2,1 3 2,1 1 2))'))
```

```
POLYGON((0 0,0 5,5 0,0 0),(1 1,3 1,1 3,1 1))
```
