Added support for the three primary scalar grid functions: * `ST_GEOHASH(geom, precision)` * `ST_GEOTILE(geom, precision)` * `ST_GEOHEX(geom, precision)` As well as versions of these three that take an optional `geo_shape` boundary (must be a `BBOX` ie. `Rectangle`). And also supporting conversion functions that convert the grid-id from long to string and back to long. This work represents the core of the feature to support geo-grid aggregations in ES|QL.
1.6 KiB
navigation_title | mapped_pages | |
---|---|---|
Spatial functions |
|
{{esql}} spatial functions [esql-spatial-functions]
{{esql}} supports these spatial functions:
:::{include} ../_snippets/lists/spatial-functions.md :::
:::{include} ../_snippets/functions/layout/st_distance.md :::
:::{include} ../_snippets/functions/layout/st_intersects.md :::
:::{include} ../_snippets/functions/layout/st_disjoint.md :::
:::{include} ../_snippets/functions/layout/st_contains.md :::
:::{include} ../_snippets/functions/layout/st_within.md :::
:::{include} ../_snippets/functions/layout/st_x.md :::
:::{include} ../_snippets/functions/layout/st_y.md :::
:::{include} ../_snippets/functions/layout/st_envelope.md :::
:::{include} ../_snippets/functions/layout/st_xmax.md :::
:::{include} ../_snippets/functions/layout/st_xmin.md :::
:::{include} ../_snippets/functions/layout/st_ymax.md :::
:::{include} ../_snippets/functions/layout/st_ymin.md :::
:::{include} ../_snippets/functions/layout/st_geotile.md :::
:::{include} ../_snippets/functions/layout/st_geotile_to_string.md :::
:::{include} ../_snippets/functions/layout/st_geotile_to_long.md :::
:::{include} ../_snippets/functions/layout/st_geohex.md :::
:::{include} ../_snippets/functions/layout/st_geohex_to_string.md :::
:::{include} ../_snippets/functions/layout/st_geohex_to_long.md :::
:::{include} ../_snippets/functions/layout/st_geohash.md :::
:::{include} ../_snippets/functions/layout/st_geohash_to_string.md :::
:::{include} ../_snippets/functions/layout/st_geohash_to_long.md :::