elasticsearch/docs/reference/esql/functions/st_centroid_agg.asciidoc
Craig Taverner d915b964ba
Rename ST_CENTROID to ST_CENTROID_AGG (#107226)
* Rename ST_CENTROID to ST_CENTROID_AGG

In order to allow development of a scalar ST_CENTROID function.

* Fix table alignment
2024-04-10 17:56:45 +02:00

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
|===