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

Return true if A is covered by B

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

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

## Signatures

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

```
false
```
