Back to Elasticsearch

St X

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

9.4.2392 B
Original Source

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

ST X

Extracts the x coordinate from the supplied point. If the point is of type geo_point this is equivalent to extracting the longitude value.

esql
ROW point = TO_GEOPOINT("POINT(42.97109629958868 14.7552534006536)")
| EVAL x =  ST_X(point), y = ST_Y(point)