to_geopoint.asciidoc 731 B

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