This topic describes the ST_IsEmpty function. This function returns true if the input geometry object is an empty geometry object, such as a GeometryCollection object, polygon object, or point object.
Syntax
boolean ST_IsEmpty(geometry geomA);Parameters
| Parameter | Description |
|---|---|
| geomA | The geometry object that you want to specify. |
Description
This function supports circular strings and curves.
Examples
- Results returned by specifying an empty GeometryCollection object:
SELECT ST_IsEmpty('GEOMETRYCOLLECTION EMPTY'::geometry); st_isempty ------------ t (1 row) - Results returned by specifying an empty polygon object:
SELECT ST_IsEmpty('POLYGON EMPTY'::geometry); st_isempty ------------ t (1 row)