Skip to content

Returns the X coordinate (longitude) of a point geometry.

func.st_x(<point>)
func.st_x(func.st_point(1.5, 2.5))
┌─────┐
1.5
└─────┘
ST_X(<point>)
SELECT ST_X(ST_POINT(1.5, 2.5));
┌─────┐
1.5
└─────┘