PostGIS  2.2.7dev-r@@SVN_REVISION@@
static int lwcollection_dimensionality ( LWCOLLECTION col)
static

Definition at line 1349 of file lwgeom.c.

References LWCOLLECTION::geoms, lwgeom_dimensionality(), and LWCOLLECTION::ngeoms.

Referenced by lwgeom_dimensionality().

1350 {
1351  int i;
1352  int dimensionality = 0;
1353  for ( i = 0; i < col->ngeoms; i++ )
1354  {
1355  int d = lwgeom_dimensionality(col->geoms[i]);
1356  if ( d > dimensionality )
1357  dimensionality = d;
1358  }
1359  return dimensionality;
1360 }
LWGEOM ** geoms
Definition: liblwgeom.h:493
int lwgeom_dimensionality(LWGEOM *geom)
Return the dimensionality (relating to point/line/poly) of an lwgeom.
Definition: lwgeom.c:1362

Here is the call graph for this function:

Here is the caller graph for this function: