st_centroid.asciidoc 516 B

1234567891011121314151617181920212223
  1. [discrete]
  2. [[esql-agg-st-centroid]]
  3. === `ST_CENTROID`
  4. Calculate the spatial centroid over a field with spatial point geometry type.
  5. [source.merge.styled,esql]
  6. ----
  7. include::{esql-specs}/spatial.csv-spec[tag=st_centroid-airports]
  8. ----
  9. [%header.monospaced.styled,format=dsv,separator=|]
  10. |===
  11. include::{esql-specs}/spatial.csv-spec[tag=st_centroid-airports-result]
  12. |===
  13. Supported types:
  14. [%header.monospaced.styled,format=dsv,separator=|]
  15. |===
  16. v | result
  17. geo_point | geo_point
  18. cartesian_point | cartesian_point
  19. |===