# ST_X

The ST_X function extracts the `x` coordinate from a given point.

## Syntax

`ST_X(point)`

### Parameters

#### point

This is an expression of type `geo_point` or `cartesian_point`.

## Examples

Here is an example of how to use the ST_X function:

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

```esql
ROW point = TO_CARTESIANPOINT("POINT(100.0 200.0)")
| EVAL x = ST_X(point), y = ST_Y(point)
```
