elasticsearch/docs/reference/esql/functions/to_cartesianpoint.asciidoc
Craig Taverner e1835c97e8
ESQL: Documentation for support for geo_point and point (#103207)
* Start working on geo_point and point docs for ESQL

* Added to_cartesianpoint and includes

* Sub-headings for easier reading

* Improve sub-headings

* Hide to_long and support for longs in to_geopoint and to_cartesianpoint
2023-12-12 12:19:23 +01:00

19 lines
625 B
Text

[discrete]
[[esql-to_cartesianpoint]]
=== `TO_CARTESIANPOINT`
Converts an input value to a `point` value.
The input can be a single- or multi-valued field or an expression.
The input type must be a string or a cartesian `point`.
A string will only be successfully converted if it respects the
https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry[WKT Point] format:
[source.merge.styled,esql]
----
include::{esql-specs}/spatial.csv-spec[tag=to_cartesianpoint-str]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/spatial.csv-spec[tag=to_cartesianpoint-str-result]
|===