PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ lwgeom_is_unitary()

int lwgeom_is_unitary ( const LWGEOM geom)

Determine whether a Geometry is a bag of sub-geometries.

point/linestring/polygon/circularstring/compoundcurve/curvepolygon are all unitary, they are not just bags of other geometries.

Definition at line 1140 of file lwgeom.c.

1141 {
1142  return lwtype_is_unitary(geom->type);
1143 }
int lwtype_is_unitary(uint32_t lwtype)
Definition: lwgeom.c:1104
uint8_t type
Definition: liblwgeom.h:462

References lwtype_is_unitary(), and LWGEOM::type.

Referenced by lwgeom_count_geometries(), and lwgeom_extract_geometry_n().

Here is the call graph for this function:
Here is the caller graph for this function: