1
0

to_cartesianpoint.asciidoc 732 B

12345678910111213141516171819202122232425262728293031323334353637
  1. [discrete]
  2. [[esql-to_cartesianpoint]]
  3. === `TO_CARTESIANPOINT`
  4. *Syntax*
  5. [source,esql]
  6. ----
  7. TO_CARTESIANPOINT(v)
  8. ----
  9. *Parameters*
  10. `v`::
  11. Input value. The input can be a single- or multi-valued column or an expression.
  12. *Description*
  13. Converts an input value to a `point` value.
  14. A string will only be successfully converted if it respects the
  15. {wikipedia}/Well-known_text_representation_of_geometry[WKT Point] format.
  16. *Supported types*
  17. include::types/to_cartesianpoint.asciidoc[]
  18. *Example*
  19. [source.merge.styled,esql]
  20. ----
  21. include::{esql-specs}/spatial.csv-spec[tag=to_cartesianpoint-str]
  22. ----
  23. [%header.monospaced.styled,format=dsv,separator=|]
  24. |===
  25. include::{esql-specs}/spatial.csv-spec[tag=to_cartesianpoint-str-result]
  26. |===