ST_COVERS

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

Returns TRUE if no point in one geospatial object is outside of another geospatial object. In other words: - GEOGRAPHY object g2 is outside GEOGRAPHY object g1. - GEOMETRY object g2 is outside GEOMETRY object g1. ST_COVERS is similar to, but subtly different from, ST_CONTAINS. For details on the differences between “covers” and “contains”, see the Dimensionally Extended 9-Intersection Model (DE-9IM). Although ST_COVERS and ST_CONTAINS might seem similar, the two functions have subtle differences. For details on the differences between “covers” and “contains”, see the Dimensionally Extended 9-Intersection Model (DE-9IM). Note This function does not support using a GeometryCollection or FeatureCollection as input values. Tip You can use the search optimization service to improve the performance of queries that call this function. For details, see Search optimization service.

Syntax

ST_COVERS( <geography_expression_1> , <geography_expression_2> )

ST_COVERS( <geometry_expression_1> , <geometry_expression_2> )

Parameters

NameRequiredDescription
geography_expression_1requiredA GEOGRAPHY object that is not a GeometryCollection or FeatureCollection.
geography_expression_2requiredA GEOGRAPHY object that is not a GeometryCollection or FeatureCollection.
geometry_expression_1requiredA GEOMETRY object that is not a GeometryCollection or FeatureCollection.
geometry_expression_2requiredA GEOMETRY object that is not a GeometryCollection or FeatureCollection.

Returns

BOOLEAN.

Usage notes

See also

Referenced by