PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwcollection_is_empty()

int lwcollection_is_empty ( const LWCOLLECTION col)

Definition at line 508 of file lwcollection.c.

509 {
510  uint32_t i;
511  if ( (col->ngeoms == 0) || (!col->geoms) )
512  return LW_TRUE;
513  for( i = 0; i < col->ngeoms; i++ )
514  {
515  if ( ! lwgeom_is_empty(col->geoms[i]) ) return LW_FALSE;
516  }
517  return LW_TRUE;
518 }
#define LW_FALSE
Definition: liblwgeom.h:77
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:1393
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
uint32_t ngeoms
Definition: liblwgeom.h:510
LWGEOM ** geoms
Definition: liblwgeom.h:512
unsigned int uint32_t
Definition: uthash.h:78

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

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

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