PostGIS  2.5.0dev-r@@SVN_REVISION@@
int lwcollection_is_empty ( const LWCOLLECTION col)

Definition at line 494 of file lwcollection.c.

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

Referenced by lwcollection_force_dims(), lwcollection_set_effective_area(), and lwgeom_is_empty().

495 {
496  uint32_t i;
497  if ( (col->ngeoms == 0) || (!col->geoms) )
498  return LW_TRUE;
499  for( i = 0; i < col->ngeoms; i++ )
500  {
501  if ( ! lwgeom_is_empty(col->geoms[i]) ) return LW_FALSE;
502  }
503  return LW_TRUE;
504 }
uint32_t ngeoms
Definition: liblwgeom.h:506
unsigned int uint32_t
Definition: uthash.h:78
#define LW_FALSE
Definition: liblwgeom.h:76
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:75
LWGEOM ** geoms
Definition: liblwgeom.h:508
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members) ...
Definition: lwgeom.c:1386

Here is the call graph for this function:

Here is the caller graph for this function: