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

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

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

## Signatures

```sql theme={"system"}
ST_IsPolygonCW(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_IsPolygonCW(ST_GeomFromWKT('POLYGON ((20 35, 45 20, 30 5, 10 10, 10 30, 20 35), (30 20, 20 25, 20 15, 30 20))'))
```

```
true
```
