PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwcollection_is_empty()

int lwcollection_is_empty ( const LWCOLLECTION col)

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

502 {
503  int i;
504  if ( (col->ngeoms == 0) || (!col->geoms) )
505  return LW_TRUE;
506  for( i = 0; i < col->ngeoms; i++ )
507  {
508  if ( ! lwgeom_is_empty(col->geoms[i]) ) return LW_FALSE;
509  }
510  return LW_TRUE;
511 }
#define LW_FALSE
Definition: liblwgeom.h:77
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
LWGEOM ** geoms
Definition: liblwgeom.h:509
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:1346
Here is the call graph for this function:
Here is the caller graph for this function: