to_cartesianshape.asciidoc 827 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. [discrete]
  2. [[esql-to_cartesianshape]]
  3. === `TO_CARTESIANSHAPE`
  4. *Syntax*
  5. [source,esql]
  6. ----
  7. TO_CARTESIANSHAPE(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 `cartesian_shape` or a `cartesian_point`.
  13. *Description*
  14. Converts an input value to a `cartesian_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. *Supported types*
  18. include::types/to_cartesianshape.asciidoc[]
  19. *Example*
  20. [source.merge.styled,esql]
  21. ----
  22. include::{esql-specs}/spatial_shapes.csv-spec[tag=to_cartesianshape-str]
  23. ----
  24. [%header.monospaced.styled,format=dsv,separator=|]
  25. |===
  26. include::{esql-specs}/spatial_shapes.csv-spec[tag=to_cartesianshape-str-result]
  27. |===