PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ lwcollection_is_empty()

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(), lwcollection_simplify(), and lwgeom_is_empty().

495 {
496  int 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 }
#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:1310
Here is the call graph for this function:
Here is the caller graph for this function: