2023-12-12 19:19:23 +08:00
|
|
|
[discrete]
|
|
|
|
[[esql-to_cartesianpoint]]
|
|
|
|
=== `TO_CARTESIANPOINT`
|
|
|
|
|
2024-01-25 23:32:24 +08:00
|
|
|
*Syntax*
|
|
|
|
|
|
|
|
[source,esql]
|
|
|
|
----
|
|
|
|
TO_CARTESIANPOINT(v)
|
|
|
|
----
|
|
|
|
|
|
|
|
*Parameters*
|
|
|
|
|
|
|
|
`v`::
|
|
|
|
Input value. The input can be a single- or multi-valued column or an expression.
|
|
|
|
|
|
|
|
*Description*
|
|
|
|
|
|
|
|
Converts an input value to a `point` value.
|
2023-12-12 19:19:23 +08:00
|
|
|
|
|
|
|
A string will only be successfully converted if it respects the
|
2024-01-25 23:32:24 +08:00
|
|
|
{wikipedia}/Well-known_text_representation_of_geometry[WKT Point] format.
|
|
|
|
|
|
|
|
include::types/to_cartesianpoint.asciidoc[]
|
|
|
|
|
|
|
|
*Example*
|
2023-12-12 19:19:23 +08:00
|
|
|
|
|
|
|
[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]
|
|
|
|
|===
|