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

◆ lwcollection_dimensionality()

static int lwcollection_dimensionality ( const LWCOLLECTION col)
static

Definition at line 1504 of file lwgeom.c.

1505{
1506 uint32_t i;
1507 int dimensionality = 0;
1508 for ( i = 0; i < col->ngeoms; i++ )
1509 {
1510 int d = lwgeom_dimensionality(col->geoms[i]);
1511 if ( d > dimensionality )
1512 dimensionality = d;
1513 }
1514 return dimensionality;
1515}
int lwgeom_dimensionality(const LWGEOM *geom)
Return the dimensionality (relating to point/line/poly) of an lwgeom.
Definition lwgeom.c:1517
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: