PostGIS  2.1.10dev-r@@SVN_REVISION@@
int lwtype_is_collection ( uint8_t  type)

Return TRUE if the geometry may contain sub-geometries, i.e.

Determine whether a type number is a collection or not.

it is a MULTI* or COMPOUNDCURVE

Definition at line 955 of file lwgeom.c.

References COLLECTIONTYPE, COMPOUNDTYPE, CURVEPOLYTYPE, LW_FALSE, LW_TRUE, MULTICURVETYPE, MULTILINETYPE, MULTIPOINTTYPE, MULTIPOLYGONTYPE, MULTISURFACETYPE, POLYHEDRALSURFACETYPE, and TINTYPE.

Referenced by circ_node_internal_new(), circ_tree_distance_tree_internal(), getTableInfo(), gserialized_is_empty_recurse(), lwcollection_construct(), lwcollection_construct_empty(), lwcollection_extract(), LWGEOM_collect_garray(), lwgeom_covers_lwgeom_sphere(), lwgeom_distance_spheroid(), lwgeom_is_collection(), lwgeom_length_spheroid(), lwgeom_nudge_geodetic(), ST_IsCollection(), and wkt_parser_set_dims().

956 {
957 
958  switch (type)
959  {
960  case MULTIPOINTTYPE:
961  case MULTILINETYPE:
962  case MULTIPOLYGONTYPE:
963  case COLLECTIONTYPE:
964  case CURVEPOLYTYPE:
965  case COMPOUNDTYPE:
966  case MULTICURVETYPE:
967  case MULTISURFACETYPE:
969  case TINTYPE:
970  return LW_TRUE;
971  break;
972 
973  default:
974  return LW_FALSE;
975  }
976 }
#define MULTICURVETYPE
Definition: liblwgeom.h:70
#define CURVEPOLYTYPE
Definition: liblwgeom.h:69
#define COMPOUNDTYPE
Definition: liblwgeom.h:68
#define MULTIPOINTTYPE
Definition: liblwgeom.h:63
#define POLYHEDRALSURFACETYPE
Definition: liblwgeom.h:72
#define LW_FALSE
Definition: liblwgeom.h:52
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:51
#define TINTYPE
Definition: liblwgeom.h:74
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:65
#define MULTISURFACETYPE
Definition: liblwgeom.h:71
#define MULTILINETYPE
Definition: liblwgeom.h:64
#define COLLECTIONTYPE
Definition: liblwgeom.h:66

Here is the caller graph for this function: