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

Return true if A crosses B

<img src="https://mintcdn.com/wherobots/fqh3gPDE0J25Lra_/images/sql-functions/ST_Crosses/ST_Crosses_true.svg?fit=max&auto=format&n=fqh3gPDE0J25Lra_&q=85&s=d7c1cf9d8bee9d791c5908f8d78cff12" alt="ST_Crosses returning true" width="400" height="300" data-path="images/sql-functions/ST_Crosses/ST_Crosses_true.svg" />

<img src="https://mintcdn.com/wherobots/fqh3gPDE0J25Lra_/images/sql-functions/ST_Crosses/ST_Crosses_false.svg?fit=max&auto=format&n=fqh3gPDE0J25Lra_&q=85&s=4a0fd95f19537d2d6800ce2e10ecc28c" alt="ST_Crosses returning false" width="400" height="300" data-path="images/sql-functions/ST_Crosses/ST_Crosses_false.svg" />

## Signatures

```sql theme={"system"}
ST_Crosses (A: Geometry, B: Geometry)
```

## Parameters

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

<ParamField body="B" type="Geometry" required>
  The second geometry.
</ParamField>

## Return type

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

## Example

```sql theme={"system"}
SELECT ST_Crosses(ST_GeomFromWKT('POLYGON((1 1, 4 1, 4 4, 1 4, 1 1))'),ST_GeomFromWKT('POLYGON((2 2, 5 2, 5 5, 2 5, 2 2))'))
```

```
false
```
