PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ lwcollection_is_empty()

static int lwcollection_is_empty ( const LWCOLLECTION col)
inlinestatic

Definition at line 181 of file lwinline.h.

182 {
183  uint32_t i;
184  if (col->ngeoms == 0 || !col->geoms)
185  return LW_TRUE;
186  for (i = 0; i < col->ngeoms; i++)
187  {
188  if (!lwgeom_is_empty(col->geoms[i]))
189  return LW_FALSE;
190  }
191  return LW_TRUE;
192 }
#define LW_FALSE
Definition: liblwgeom.h:94
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:93
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:199
uint32_t ngeoms
Definition: liblwgeom.h:580
LWGEOM ** geoms
Definition: liblwgeom.h:575

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: