PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwcollection_is_empty()

static int lwcollection_is_empty ( const LWCOLLECTION col)
inlinestatic

Definition at line 175 of file lwinline.h.

176 {
177  uint32_t i;
178  if (col->ngeoms == 0 || !col->geoms)
179  return LW_TRUE;
180  for (i = 0; i < col->ngeoms; i++)
181  {
182  if (!lwgeom_is_empty(col->geoms[i]))
183  return LW_FALSE;
184  }
185  return LW_TRUE;
186 }
#define LW_FALSE
Definition: liblwgeom.h:108
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:107
static int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
Definition: lwinline.h:193
uint32_t ngeoms
Definition: liblwgeom.h:566
LWGEOM ** geoms
Definition: liblwgeom.h:561

References LWCOLLECTION::geoms, LW_FALSE, LW_TRUE, lwgeom_is_empty(), and LWCOLLECTION::ngeoms.

Referenced by lwgeom_is_empty().

Here is the call graph for this function:
Here is the caller graph for this function: