ST_IsEmpty¶
Returns true if the geometry or geography is empty.
Usage¶
boolean ST_IsEmpty(geom: geometry)
boolean ST_IsEmpty(geog: geography)
Arguments¶
- geog (geography): Input geography
- geom (geometry): Input geometry
Examples¶
SELECT ST_IsEmpty(ST_GeomFromWKT('POINT EMPTY'));
┌─────────────────────────────────────────────────┐
│ st_isempty(st_geomfromwkt(Utf8("POINT EMPTY"))) │
│ boolean │
╞═════════════════════════════════════════════════╡
│ true │
└─────────────────────────────────────────────────┘
SELECT ST_IsEmpty(ST_GeogFromWKT('POINT EMPTY'));
┌─────────────────────────────────────────────────┐
│ st_isempty(st_geogfromwkt(Utf8("POINT EMPTY"))) │
│ boolean │
╞═════════════════════════════════════════════════╡
│ true │
└─────────────────────────────────────────────────┘