PostGIS  2.2.7dev-r@@SVN_REVISION@@
static int lw_dist2d_is_collection ( const LWGEOM g)
static

Definition at line 239 of file measures.c.

References COLLECTIONTYPE, COMPOUNDTYPE, LW_FALSE, LW_TRUE, MULTICURVETYPE, MULTILINETYPE, MULTIPOINTTYPE, MULTIPOLYGONTYPE, MULTISURFACETYPE, POLYHEDRALSURFACETYPE, and LWGEOM::type.

Referenced by lw_dist2d_recursive().

240 {
241 
242  switch (g->type)
243  {
244  case MULTIPOINTTYPE:
245  case MULTILINETYPE:
246  case MULTIPOLYGONTYPE:
247  case COLLECTIONTYPE:
248  case MULTICURVETYPE:
249  case MULTISURFACETYPE:
250  case COMPOUNDTYPE:
252  return LW_TRUE;
253  break;
254 
255  default:
256  return LW_FALSE;
257  }
258 }
#define MULTICURVETYPE
Definition: liblwgeom.h:80
#define COMPOUNDTYPE
Definition: liblwgeom.h:78
#define MULTIPOINTTYPE
Definition: liblwgeom.h:73
#define POLYHEDRALSURFACETYPE
Definition: liblwgeom.h:82
#define LW_FALSE
Definition: liblwgeom.h:62
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:61
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:75
#define MULTISURFACETYPE
Definition: liblwgeom.h:81
uint8_t type
Definition: liblwgeom.h:380
#define MULTILINETYPE
Definition: liblwgeom.h:74
#define COLLECTIONTYPE
Definition: liblwgeom.h:76

Here is the caller graph for this function: