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

Definition at line 1362 of file lwgeom.c.

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

Referenced by lwgeom_dimensionality().

1363 {
1364  int i;
1365  int dimensionality = 0;
1366  for ( i = 0; i < col->ngeoms; i++ )
1367  {
1368  int d = lwgeom_dimensionality(col->geoms[i]);
1369  if ( d > dimensionality )
1370  dimensionality = d;
1371  }
1372  return dimensionality;
1373 }
LWGEOM ** geoms
Definition: liblwgeom.h:508
int lwgeom_dimensionality(LWGEOM *geom)
Return the dimensionality (relating to point/line/poly) of an lwgeom.
Definition: lwgeom.c:1375

Here is the call graph for this function:

Here is the caller graph for this function: