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

> Check whether polygon rings use counter-clockwise exterior orientation.

Check whether polygon rings use counter-clockwise exterior orientation.

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

## Signature

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

ST_IsPolygonCCW(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 counter-clockwise and every interior
  ring is clockwise. Empty Polygon and MultiPolygon values return True.
</ResponseField>


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