st_x.asciidoc 674 B

123456789101112131415161718192021222324252627282930313233
  1. [discrete]
  2. [[esql-st_x]]
  3. === `ST_X`
  4. experimental::[]
  5. *Syntax*
  6. [.text-center]
  7. image::esql/functions/signature/st_x.svg[Embedded,opts=inline]
  8. *Parameters*
  9. `point`::
  10. Expression of type `geo_point` or `cartesian_point`. If `null`, the function returns `null`.
  11. *Description*
  12. Extracts the `x` coordinate from the supplied point.
  13. If the points is of type `geo_point` this is equivalent to extracting the `longitude` value.
  14. include::types/st_x.asciidoc[]
  15. *Example*
  16. [source.merge.styled,esql]
  17. ----
  18. include::{esql-specs}/spatial.csv-spec[tag=st_x_y]
  19. ----
  20. [%header.monospaced.styled,format=dsv,separator=|]
  21. |===
  22. include::{esql-specs}/spatial.csv-spec[tag=st_x_y-result]
  23. |===