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

Definition at line 1438 of file lwgeom.c.

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

Referenced by lwgeom_dimensionality().

1439 {
1440  uint32_t i;
1441  int dimensionality = 0;
1442  for ( i = 0; i < col->ngeoms; i++ )
1443  {
1444  int d = lwgeom_dimensionality(col->geoms[i]);
1445  if ( d > dimensionality )
1446  dimensionality = d;
1447  }
1448  return dimensionality;
1449 }
uint32_t ngeoms
Definition: liblwgeom.h:506
unsigned int uint32_t
Definition: uthash.h:78
LWGEOM ** geoms
Definition: liblwgeom.h:508
int lwgeom_dimensionality(const LWGEOM *geom)
Return the dimensionality (relating to point/line/poly) of an lwgeom.
Definition: lwgeom.c:1451

Here is the call graph for this function:

Here is the caller graph for this function: