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

Definition at line 1281 of file lwgeom.c.

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

Referenced by lwgeom_dimensionality().

1282 {
1283  int i;
1284  int dimensionality = 0;
1285  for ( i = 0; i < col->ngeoms; i++ )
1286  {
1287  int d = lwgeom_dimensionality(col->geoms[i]);
1288  if ( d > dimensionality )
1289  dimensionality = d;
1290  }
1291  return dimensionality;
1292 }
LWGEOM ** geoms
Definition: liblwgeom.h:465
int lwgeom_dimensionality(LWGEOM *geom)
Return the dimensionality (relating to point/line/poly) of an lwgeom.
Definition: lwgeom.c:1294

Here is the call graph for this function:

Here is the caller graph for this function: