PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwcollection_dimensionality()

static int lwcollection_dimensionality ( const LWCOLLECTION col)
static

Definition at line 1445 of file lwgeom.c.

1446 {
1447  uint32_t i;
1448  int dimensionality = 0;
1449  for ( i = 0; i < col->ngeoms; i++ )
1450  {
1451  int d = lwgeom_dimensionality(col->geoms[i]);
1452  if ( d > dimensionality )
1453  dimensionality = d;
1454  }
1455  return dimensionality;
1456 }
int lwgeom_dimensionality(const LWGEOM *geom)
Return the dimensionality (relating to point/line/poly) of an lwgeom.
Definition: lwgeom.c:1458
uint32_t ngeoms
Definition: liblwgeom.h:510
LWGEOM ** geoms
Definition: liblwgeom.h:512
unsigned int uint32_t
Definition: uthash.h:78

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: