forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ESQL: Documentation for support for geo_point and point (elastic#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
- Loading branch information
1 parent
c55495d
commit e1835c9
Showing
6 changed files
with
64 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[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] | ||
|=== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[discrete] | ||
[[esql-to_geopoint]] | ||
=== `TO_GEOPOINT` | ||
Converts an input value to a `geo_point` value. | ||
|
||
The input can be a single- or multi-valued field or an expression. | ||
The input type must be a string or a `geo_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_geopoint-str] | ||
---- | ||
[%header.monospaced.styled,format=dsv,separator=|] | ||
|=== | ||
include::{esql-specs}/spatial.csv-spec[tag=to_geopoint-str-result] | ||
|=== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters