PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ lwcollection_dimensionality()

static int lwcollection_dimensionality ( const LWCOLLECTION col)
static

Definition at line 1413 of file lwgeom.c.

1414 {
1415  uint32_t i;
1416  int dimensionality = 0;
1417  for ( i = 0; i < col->ngeoms; i++ )
1418  {
1419  int d = lwgeom_dimensionality(col->geoms[i]);
1420  if ( d > dimensionality )
1421  dimensionality = d;
1422  }
1423  return dimensionality;
1424 }
int lwgeom_dimensionality(const LWGEOM *geom)
Return the dimensionality (relating to point/line/poly) of an lwgeom.
Definition: lwgeom.c:1426
uint32_t ngeoms
Definition: liblwgeom.h:580
LWGEOM ** geoms
Definition: liblwgeom.h:575

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: