to_geoshape.asciidoc 754 B

123456789101112131415161718192021222324252627282930313233343536
  1. [discrete]
  2. [[esql-to_geoshape]]
  3. === `TO_GEOSHAPE`
  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, a `geo_shape` or a `geo_point`.
  13. *Description*
  14. Converts an input value to a `geo_shape` value.
  15. A string will only be successfully converted if it respects the
  16. {wikipedia}/Well-known_text_representation_of_geometry[WKT] format.
  17. include::types/to_geoshape.asciidoc[]
  18. *Example*
  19. [source.merge.styled,esql]
  20. ----
  21. include::{esql-specs}/spatial_shapes.csv-spec[tag=to_geoshape-str]
  22. ----
  23. [%header.monospaced.styled,format=dsv,separator=|]
  24. |===
  25. include::{esql-specs}/spatial_shapes.csv-spec[tag=to_geoshape-str-result]
  26. |===