Returns true if the input geometry is an empty geometry, such as a GeometryCollection, polygon, or point.
Syntax
boolean ST_IsEmpty(geometry geomA);Parameters
| Parameter | Description |
|---|---|
geomA | The geometry to test. |
Usage notes
ST_IsEmpty supports circular strings and curves.
Examples
Test an empty GeometryCollection:
SELECT ST_IsEmpty('GEOMETRYCOLLECTION EMPTY'::geometry);
st_isempty
------------
t
(1 row)Test an empty polygon:
SELECT ST_IsEmpty('POLYGON EMPTY'::geometry);
st_isempty
------------
t
(1 row)该文章对您有帮助吗?