PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ lwcollection_is_empty()

static int lwcollection_is_empty ( const LWCOLLECTION col)
inlinestatic

Definition at line 185 of file lwinline.h.

186 {
187  uint32_t i;
188  if (col->ngeoms == 0 || !col->geoms)
189  return LW_TRUE;
190  for (i = 0; i < col->ngeoms; i++)
191  {
192  if (!lwgeom_is_empty(col->geoms[i]))
193  return LW_FALSE;
194  }
195  return LW_TRUE;
196 }
#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:203
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: