st_zmin 函数

适用于:已勾选“是”的 Databricks Runtime 17.1 及更高版本

重要

此功能目前以公共预览版提供。

返回输入 GEOMETRY的最小 Z 坐标,或者 NULL 如果几何图形为空或没有 Z 坐标。

语法

st_zmin ( geoExpr )

论据

  • geoExpr:一个 GEOMETRY 值。

退货

类型 DOUBLE的值,输入的最小 Z 坐标 GEOMETRY

如果输入为NULL空或几何图形为空或没有 Z 坐标,则函数返回NULL

例子

-- Returns the minimum Z coordinate of a non-empty geometry with a Z coordinate.
> SELECT st_zmin(st_geomfromtext('LINESTRING Z (10 34 -1,44 57 -2,30 24 -5)'));
  -5.0
-- Returns `NULL` for a non-empty geometry without a Z coordinate.
> SELECT st_zmin(st_geomfromtext('LINESTRING(10 34,44 57,30 24)'));
  NULL