ST_X

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

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

Syntax

ST_X( <geography_or_geometry_expression> )

Parameters

NameRequiredDescription
geography_or_geometry_expressionrequiredThe argument must be an expression of the type GEOGRAPHY or GEOMETRY and must contain a Point.

Returns

Returns a REAL value.

Usage notes