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

> Check whether polygon rings use clockwise exterior orientation.

Check whether polygon rings use clockwise exterior orientation.

SQL reference: [`ST_IsPolygonCW`](/reference/wherobots-db/geometry-data/accessors/ST_IsPolygonCW)

## Signature

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

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

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Geometry column to check.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  True if every exterior ring is clockwise and every interior ring
  is counter-clockwise. Empty Polygon and MultiPolygon values return True.
</ResponseField>


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