Examines contents of collection and finds the largest coordinate dimension of all components.
Areal > linear > puntal.
Definition at line 384 of file lwcollection.c.
386 int largest_type = 0;
388 for (i = 0; i < col->
ngeoms; i++)
399 if (gtype > largest_type)
400 largest_type = gtype;
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
int lwgeom_is_collection(const LWGEOM *lwgeom)
Determine whether a LWGEOM can contain sub-geometries or not.
static uint32_t lwcollection_largest_dimension(const LWCOLLECTION *col)
Examines contents of collection and finds the largest coordinate dimension of all components.
static uint32_t lwgeom_get_type(const LWGEOM *geom)
Return LWTYPE number.
References LWCOLLECTION::geoms, LINETYPE, lwgeom_get_type(), lwgeom_is_collection(), LWCOLLECTION::ngeoms, POINTTYPE, and POLYGONTYPE.
Referenced by lwcollection_extract().