PostGIS 3.6.2dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwcollection_dimensionality()

static int lwcollection_dimensionality ( const LWCOLLECTION col)
static

Definition at line 1476 of file lwgeom.c.

1477{
1478 uint32_t i;
1479 int dimensionality = 0;
1480 for ( i = 0; i < col->ngeoms; i++ )
1481 {
1482 int d = lwgeom_dimensionality(col->geoms[i]);
1483 if ( d > dimensionality )
1484 dimensionality = d;
1485 }
1486 return dimensionality;
1487}
int lwgeom_dimensionality(const LWGEOM *geom)
Return the dimensionality (relating to point/line/poly) of an lwgeom.
Definition lwgeom.c:1489
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: