This topic describes the ST_IsEmpty function. This function checks whether an object is empty.

Syntax

boolean ST_IsEmpty(meshgeom geom);
boolean ST_IsEmpty(sfmesh sfmeshObject);

Parameters

ParameterDescription
geomThe meshgeom object.
sfmeshObjectThe sfmesh object.

Description

This function checks whether an object is empty.

Examples

  • Example 1:
    select ST_IsEmpty('MESHGEOM(PATCH(INDEXSURFACE(VERTEX(0 0 2,0 10 3,10 10 1,10 0 1), INDEX((0,1,2),(1,2,3)))))'::meshgeom);
    
    ------------
     f
  • Example 2:
    select ST_IsEmpty('MESHGEOM EMPTY'::meshgeom);
    
    ------------
     t