Back to Elasticsearch

To Cartesianshape

docs/reference/query-languages/esql/kibana/docs/functions/to_cartesianshape.md

9.4.2576 B
Original Source

% This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.

TO CARTESIANSHAPE

Converts an input value to a cartesian_shape value. A string will only be successfully converted if it respects the WKT format.

esql
ROW wkt = ["POINT(4297.11 -1475.53)", "POLYGON ((3339584.72 1118889.97, 4452779.63 4865942.27, 2226389.81 4865942.27, 1113194.90 2273030.92, 3339584.72 1118889.97))"]
| MV_EXPAND wkt
| EVAL geom = TO_CARTESIANSHAPE(wkt)