PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwcollection_dimensionality()

static int lwcollection_dimensionality ( LWCOLLECTION col)
static

Definition at line 1398 of file lwgeom.c.

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

Referenced by lwgeom_dimensionality().

1399 {
1400  int i;
1401  int dimensionality = 0;
1402  for ( i = 0; i < col->ngeoms; i++ )
1403  {
1404  int d = lwgeom_dimensionality(col->geoms[i]);
1405  if ( d > dimensionality )
1406  dimensionality = d;
1407  }
1408  return dimensionality;
1409 }
LWGEOM ** geoms
Definition: liblwgeom.h:509
int lwgeom_dimensionality(LWGEOM *geom)
Return the dimensionality (relating to point/line/poly) of an lwgeom.
Definition: lwgeom.c:1411
Here is the call graph for this function:
Here is the caller graph for this function: