Skip to content

Returns the longitude (X coordinate) of a Point represented by a GEOMETRY object.

ST_X(<geometry>)
ArgumentsDescription
<geometry>The argument must be an expression of type GEOMETRY and must contain a Point.

Double.

SELECT
ST_X(
ST_MAKEGEOMPOINT(
37.5, 45.5
)
) AS pipeline_x;
┌────────────┐
│ pipeline_x │
├────────────┤
37.5
└────────────┘