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

Return true if A covers B

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

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

## Signatures

```sql theme={"system"}
ST_Covers (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_Covers(ST_GeomFromWKT('POLYGON((-2 0,0 2,2 0,-2 0))'), ST_GeomFromWKT('POLYGON((-1 0,0 1,1 0,-1 0))'))
```

```
true
```
