mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-30 10:23:41 -04:00
* Document to_geoshape and to_cartesianshape * Note that geo_point and point are now supported Elasticsearch types * Fix doc links
23 lines
688 B
Text
23 lines
688 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]
|
|
|===
|
|
|
|
Supported types:
|
|
|
|
include::types/to_cartesianpoint.asciidoc[]
|