Loading

ES|QL TO_CARTESIANPOINT function

Embedded
field

Input value. The input can be a single- or multi-valued column or an expression.

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

field result
cartesian_point cartesian_point
keyword cartesian_point
text cartesian_point
ROW wkt = ["POINT(4297.11 -1475.53)", "POINT(7580.93 2272.77)"]
| MV_EXPAND wkt
| EVAL pt = TO_CARTESIANPOINT(wkt)
		
wkt:keyword pt:cartesian_point
"POINT(4297.11 -1475.53)" POINT(4297.11 -1475.53)
"POINT(7580.93 2272.77)" POINT(7580.93 2272.77)