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

Returns true if all polygonal components in the input geometry have their exterior rings oriented counter-clockwise and interior rings oriented clockwise.

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

## Signatures

```sql theme={"system"}
ST_IsPolygonCCW(geom: Geometry)
```

## Parameters

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

## Return type

<ResponseField type="Boolean">
  Returns `true` or `false`.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_IsPolygonCCW(ST_GeomFromWKT('POLYGON ((20 35, 10 30, 10 10, 30 5, 45 20, 20 35), (30 20, 20 15, 20 25, 30 20))'))
```

```
true
```
