适用于: Databricks Runtime 17.1 及更高版本
重要
此功能目前以公共预览版提供。
如果输入 GEOGRAPHY
或 GEOMETRY
值不包含任何非空点,则返回 true。
语法
st_isempty ( geoExpr )
论据
-
geoExpr
:GEOGRAPHY
或GEOMETRY
值。
退货
一个类型 BOOLEAN
值,如果输入 GEOGRAPHY
或 GEOMETRY
值不包含任何非空点,则为 true。
如果输入为 NULL
.,则函数返回 NULL
。
例子
-- Returns false for geometry containing non-empty points.
> SELECT st_isempty(st_geomfromtext('MULTIPOINT(10 34,44 57,EMPTY)'));
false
-- Returns true for geometry containing only empty points.
> SELECT st_isempty(st_geogfromtext('MULTIPOINT(EMPTY,EMPTY)'));
true