to_geopoint.asciidoc 750 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. *Supported types*
  16. include::types/to_geopoint.asciidoc[]
  17. A string will only be successfully converted if it respects the
  18. {wikipedia}/Well-known_text_representation_of_geometry[WKT Point] format.
  19. *Example*
  20. [source.merge.styled,esql]
  21. ----
  22. include::{esql-specs}/spatial.csv-spec[tag=to_geopoint-str]
  23. ----
  24. [%header.monospaced.styled,format=dsv,separator=|]
  25. |===
  26. include::{esql-specs}/spatial.csv-spec[tag=to_geopoint-str-result]
  27. |===