PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ lwcollection_dimensionality()

static int lwcollection_dimensionality ( const LWCOLLECTION col)
static

Definition at line 1445 of file lwgeom.c.

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

Referenced by lwgeom_dimensionality().

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 }
uint32_t ngeoms
Definition: liblwgeom.h:509
unsigned int uint32_t
Definition: uthash.h:78
LWGEOM ** geoms
Definition: liblwgeom.h:511
int lwgeom_dimensionality(const LWGEOM *geom)
Return the dimensionality (relating to point/line/poly) of an lwgeom.
Definition: lwgeom.c:1458
Here is the call graph for this function:
Here is the caller graph for this function: