Nota
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
适用于: Databricks Runtime 17.1 及更高版本
重要
此功能目前以公共预览版提供。
返回输入点 GEOMETRY
的 X 坐标,或者 NULL
该点为空。
语法
st_x ( geoExpr )
论据
-
geoExpr
:一个GEOMETRY
值。
退货
类型为DOUBLE
的值,输入点GEOMETRY
的 X 坐标。
如果输入为NULL
或点为空,则函数返回NULL
。
例子
-- Returns the X coordinate of a non-empty point geometry.
> SELECT st_x(st_geomfromtext('POINT Z (2 3 4)'));
2.0
-- Returns `NULL` for an empty point geometry.
> SELECT st_x(st_geomfromtext('POINT ZM EMPTY'));
NULL