[discrete]
[[esql-st_contains]]
=== `ST_CONTAINS`

experimental::[]

*Syntax*

[.text-center]
image::esql/functions/signature/st_contains.svg[Embedded,opts=inline]

*Parameters*

`geomA`::
Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`.

`geomB`::
Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`.
The second parameter must also have the same coordinate system as the first.
This means it is not possible to combine `geo_*` and `cartesian_*` parameters.

include::description/st_contains.asciidoc[]
This is the inverse of the <<esql-st_within,ST_WITHIN>> function.

include::types/st_contains.asciidoc[]
include::examples/st_contains.asciidoc[]
