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

Returns true when the input is a LineString whose coordinate sequence has counter-clockwise ring orientation. Open LineStrings are evaluated as supplied. Other geometry types and LineStrings with fewer than four points return false.

## Signatures

```sql theme={"system"}
ST_IsLineStringCCW(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_IsLineStringCCW(ST_GeomFromWKT('LINESTRING (0 0, 1 0, 1 1, 0 1, 0 0)'))
```

```text theme={"system"}
true
```
