st_x.asciidoc 675 B

123456789101112131415161718192021222324252627282930313233
  1. [discrete]
  2. [[esql-st_x]]
  3. === `ST_X`
  4. *Syntax*
  5. [.text-center]
  6. image::esql/functions/signature/st_x.svg[Embedded,opts=inline]
  7. *Parameters*
  8. `point`::
  9. Expression of type `geo_point` or `cartesian_point`. If `null`, the function returns `null`.
  10. *Description*
  11. Extracts the `x` coordinate from the supplied point.
  12. If the points is of type `geo_point` this is equivalent to extracting the `longitude` value.
  13. *Supported types*
  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. |===