PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ lwgeom_is_collection()

int lwgeom_is_collection ( const LWGEOM lwgeom)

Determine whether a LWGEOM contains sub-geometries or not This basically just checks that the struct has geoms/ngeoms members, like all collections.

Definition at line 1097 of file lwgeom.c.

1098 {
1099  if( ! geom ) return LW_FALSE;
1100  return lwtype_is_collection(geom->type);
1101 }
#define LW_FALSE
Definition: liblwgeom.h:94
int lwtype_is_collection(uint8_t type)
Return TRUE if the geometry is structured as a wrapper on a geoms/ngeoms list of sub-geometries.
Definition: lwgeom.c:1168

References LW_FALSE, lwtype_is_collection(), and LWGEOM::type.

Referenced by assert_empty_diagram(), asx3d3_collection_sb(), lw_dist3d_recursive(), lwcollection_extract_recursive(), lwcollection_largest_dimension(), lwcollection_offsetcurve(), lwgeom_add_bbox_deep(), lwgeom_affine(), lwgeom_area(), lwgeom_as_lwcollection(), LWGEOM_collect(), LWGEOM_dump(), LWGEOM_dumppoints(), LWGEOM_dumpsegments(), LWGEOM_force_collection(), lwgeom_homogenize(), lwgeom_is_closed(), lwgeom_length(), lwgeom_length_2d(), lwgeom_make_valid_params(), lwgeom_node(), lwgeom_perimeter(), lwgeom_perimeter_2d(), lwgeom_scale(), lwgeom_set_srid(), lwgeom_subdivide_recursive(), lwgeom_to_basic_type(), lwgeom_to_marc21(), lwgeom_to_twkb_with_idlist(), rt_raster_surface(), ST_CollectionExtract(), and unroll_collections().

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