PostGIS  2.1.10dev-r@@SVN_REVISION@@
int lwgeom_is_collection ( const LWGEOM geom)

Determine whether a LWGEOM can contain sub-geometries or not.

Definition at line 947 of file lwgeom.c.

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

Referenced by asgml2_collection_buf(), asgml2_collection_size(), asgml3_collection_buf(), asgml3_collection_size(), asx3d3_collection_buf(), asx3d3_collection_size(), lw_dist3d_recursive(), lwgeom_add_bbox_deep(), lwgeom_affine(), lwgeom_area(), lwgeom_as_lwcollection(), LWGEOM_collect(), LWGEOM_dump(), LWGEOM_dumppoints(), LWGEOM_force_collection(), lwgeom_homogenize(), lwgeom_is_closed(), lwgeom_length(), lwgeom_length_2d(), lwgeom_make_valid(), lwgeom_node(), LWGEOM_numgeometries_collection(), lwgeom_perimeter(), lwgeom_perimeter_2d(), lwgeom_set_srid(), rt_raster_surface(), and ST_CollectionExtract().

948 {
949  if( ! geom ) return LW_FALSE;
950  return lwtype_is_collection(geom->type);
951 }
#define LW_FALSE
Definition: liblwgeom.h:52
int lwtype_is_collection(uint8_t type)
Return TRUE if the geometry may contain sub-geometries, i.e.
Definition: lwgeom.c:955
uint8_t type
Definition: liblwgeom.h:352

Here is the call graph for this function:

Here is the caller graph for this function: