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

Definition at line 481 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().

482 {
483  int i;
484  if ( (col->ngeoms == 0) || (!col->geoms) )
485  return LW_TRUE;
486  for( i = 0; i < col->ngeoms; i++ )
487  {
488  if ( ! lwgeom_is_empty(col->geoms[i]) ) return LW_FALSE;
489  }
490  return LW_TRUE;
491 }
#define LW_FALSE
Definition: liblwgeom.h:62
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:61
LWGEOM ** geoms
Definition: liblwgeom.h:493
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:1297

Here is the call graph for this function:

Here is the caller graph for this function: