Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: Databricks Runtime 17.1 and above
Important
This feature is in Public Preview.
Returns true if the input GEOGRAPHY
or GEOMETRY
value does not contain any non-empty points.
Syntax
st_isempty ( geoExpr )
Arguments
geoExpr
: AGEOGRAPHY
orGEOMETRY
value.
Returns
A value of type BOOLEAN
, true if the input GEOGRAPHY
or GEOMETRY
value does not contain any non-empty points.
The function returns NULL
if the input is NULL
.
Examples
-- 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