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

Return true if A overlaps B

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

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

## Signatures

```sql theme={"system"}
ST_Overlaps (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_Overlaps(ST_GeomFromWKT('POLYGON((2.5 2.5, 2.5 4.5, 4.5 4.5, 4.5 2.5, 2.5 2.5))'), ST_GeomFromWKT('POLYGON((4 4, 4 6, 6 6, 6 4, 4 4))'))
```

```
true
```
