> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_CoveredBy

> Tests whether a point is covered by a polygon, including its boundary.

Returns whether a point is in a polygon interior or on its exterior or hole boundary. This is the converse of `ST_Covers`.

## Syntax

```sql theme={null}
BOOLEAN ST_CoveredBy(GEOGRAPHY point, GEOGRAPHY polygon)
BOOLEAN ST_CoveredBy(GEOMETRY point, GEOMETRY polygon)
```

`polygon` must be an XY `POLYGON` or `MULTIPOLYGON`, and `point` must be an XY `POINT`. `GEOMETRY` descriptors must match. `NULL` propagates, and an `EMPTY` input returns `false`.

## Example

```SQL theme={null}
SELECT ST_CoveredBy(
    ST_GeomFromText('POINT (0 5)', 'EPSG:3857'),
    ST_GeomFromText('POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))', 'EPSG:3857'));
-- true
```

## Keywords

ST\_COVEREDBY,ST,COVEREDBY

## Related data types

[GEOGRAPHY](/documents/4.2/sql-reference/data-types/spatial-types/GEOGRAPHY.md), [GEOMETRY](/documents/4.2/sql-reference/data-types/spatial-types/GEOMETRY.md), [BOOLEAN](/documents/4.2/sql-reference/data-types/numeric/BOOLEAN.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.