to_geopoint.asciidoc 656 B

1234567891011121314151617181920212223
  1. [discrete]
  2. [[esql-to_geopoint]]
  3. === `TO_GEOPOINT`
  4. Converts an input value to a `geo_point` value.
  5. The input can be a single- or multi-valued field or an expression.
  6. The input type must be a string or a `geo_point`.
  7. A string will only be successfully converted if it respects the
  8. https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry[WKT Point] format:
  9. [source.merge.styled,esql]
  10. ----
  11. include::{esql-specs}/spatial.csv-spec[tag=to_geopoint-str]
  12. ----
  13. [%header.monospaced.styled,format=dsv,separator=|]
  14. |===
  15. include::{esql-specs}/spatial.csv-spec[tag=to_geopoint-str-result]
  16. |===
  17. Supported types:
  18. include::types/to_geopoint.asciidoc[]