27 lines
789 B
Plaintext
27 lines
789 B
Plaintext
[discrete]
|
|
[[esql-st_within]]
|
|
=== `ST_WITHIN`
|
|
|
|
experimental::[]
|
|
|
|
*Syntax*
|
|
|
|
[.text-center]
|
|
image::esql/functions/signature/st_within.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_within.asciidoc[]
|
|
This is the inverse of the <<esql-st_contains,ST_CONTAINS>> function.
|
|
|
|
include::types/st_within.asciidoc[]
|
|
include::examples/st_within.asciidoc[]
|