PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwcollection_dimensionality()

static int lwcollection_dimensionality ( const LWCOLLECTION col)
static

Definition at line 1396 of file lwgeom.c.

1397 {
1398  uint32_t i;
1399  int dimensionality = 0;
1400  for ( i = 0; i < col->ngeoms; i++ )
1401  {
1402  int d = lwgeom_dimensionality(col->geoms[i]);
1403  if ( d > dimensionality )
1404  dimensionality = d;
1405  }
1406  return dimensionality;
1407 }
int lwgeom_dimensionality(const LWGEOM *geom)
Return the dimensionality (relating to point/line/poly) of an lwgeom.
Definition: lwgeom.c:1409
uint32_t ngeoms
Definition: liblwgeom.h:566
LWGEOM ** geoms
Definition: liblwgeom.h:561

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

Referenced by lwgeom_dimensionality().

Here is the call graph for this function:
Here is the caller graph for this function: