to_cartesianshape.asciidoc 706 B

1234567891011121314151617181920212223
  1. [discrete]
  2. [[esql-to_cartesianshape]]
  3. === `TO_CARTESIANSHAPE`
  4. Converts an input value to a `cartesian_shape` 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 `cartesian_shape`.
  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] format:
  9. [source.merge.styled,esql]
  10. ----
  11. include::{esql-specs}/spatial_shapes.csv-spec[tag=to_cartesianshape-str]
  12. ----
  13. [%header.monospaced.styled,format=dsv,separator=|]
  14. |===
  15. include::{esql-specs}/spatial_shapes.csv-spec[tag=to_cartesianshape-str-result]
  16. |===
  17. Supported types:
  18. include::types/to_cartesianshape.asciidoc[]