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

Definition at line 471 of file lwcollection.c.

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

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

472 {
473  int i;
474  if ( (col->ngeoms == 0) || (!col->geoms) )
475  return LW_TRUE;
476  for( i = 0; i < col->ngeoms; i++ )
477  {
478  if ( ! lwgeom_is_empty(col->geoms[i]) ) return LW_FALSE;
479  }
480  return LW_TRUE;
481 }
#define LW_FALSE
Definition: liblwgeom.h:52
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:51
LWGEOM ** geoms
Definition: liblwgeom.h:465
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:1229

Here is the call graph for this function:

Here is the caller graph for this function: