mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
* Rename ST_CENTROID to ST_CENTROID_AGG In order to allow development of a scalar ST_CENTROID function. * Fix table alignment
25 lines
546 B
Text
25 lines
546 B
Text
[discrete]
|
|
[[esql-agg-st-centroid]]
|
|
=== `ST_CENTROID_AGG`
|
|
|
|
experimental::[]
|
|
|
|
Calculate the spatial centroid over a field with spatial point geometry type.
|
|
|
|
[source.merge.styled,esql]
|
|
----
|
|
include::{esql-specs}/spatial.csv-spec[tag=st_centroid_agg-airports]
|
|
----
|
|
[%header.monospaced.styled,format=dsv,separator=|]
|
|
|===
|
|
include::{esql-specs}/spatial.csv-spec[tag=st_centroid_agg-airports-result]
|
|
|===
|
|
|
|
Supported types:
|
|
|
|
[%header.monospaced.styled,format=dsv,separator=|]
|
|
|===
|
|
v | result
|
|
geo_point | geo_point
|
|
cartesian_point | cartesian_point
|
|
|===
|