Back to Elasticsearch

St Within

docs/reference/query-languages/esql/kibana/docs/functions/st_within.md

9.4.1574 B
Original Source

% This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.

ST WITHIN

Returns whether the first geometry is within the second geometry. This is the inverse of the ST_CONTAINS function.

esql
FROM airport_city_boundaries
| WHERE ST_WITHIN(city_boundary, TO_GEOSHAPE("POLYGON((109.1 18.15, 109.6 18.15, 109.6 18.65, 109.1 18.65, 109.1 18.15))"))
| KEEP abbrev, airport, region, city, city_location