如果輸入參數是一個空的GeometryCollection、Polygon或Point等,返回true。

語法

boolean  ST_IsEmpty(geometry  geomA);

參數

參數名稱 描述
geomA 目標Geometry對象。

描述

該函數支持 Circular Strings和Curves類型幾何對象。

示例

  • 空的GeometryCollection:
    SELECT ST_IsEmpty('GEOMETRYCOLLECTION EMPTY'::geometry);
     st_isempty
    ------------
     t
    (1 row)
                        
  • 空的Polygon:
    SELECT ST_IsEmpty('POLYGON EMPTY'::geometry);
     st_isempty
    ------------
     t
    (1 row)