1234567891011121314151617181920212223242526272829303132333435363738 |
- [discrete]
- [[esql-to_geopoint]]
- === `TO_GEOPOINT`
- *Syntax*
- [source,esql]
- ----
- TO_GEOPOINT(v)
- ----
- *Parameters*
- `v`::
- Input value. The input can be a single- or multi-valued column or an expression.
- The input type must be a string or a `geo_point`.
- *Description*
- Converts an input value to a `geo_point` value.
- *Supported types*
- include::types/to_geopoint.asciidoc[]
- A string will only be successfully converted if it respects the
- {wikipedia}/Well-known_text_representation_of_geometry[WKT Point] format.
- *Example*
- [source.merge.styled,esql]
- ----
- include::{esql-specs}/spatial.csv-spec[tag=to_geopoint-str]
- ----
- [%header.monospaced.styled,format=dsv,separator=|]
- |===
- include::{esql-specs}/spatial.csv-spec[tag=to_geopoint-str-result]
- |===
|