PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lw_dist2d_is_collection()

static int lw_dist2d_is_collection ( const LWGEOM g)
static

Definition at line 253 of file measures.c.

254 {
255 
256  switch (g->type)
257  {
258  case MULTIPOINTTYPE:
259  case MULTILINETYPE:
260  case MULTIPOLYGONTYPE:
261  case COLLECTIONTYPE:
262  case MULTICURVETYPE:
263  case MULTISURFACETYPE:
264  case COMPOUNDTYPE:
266  return LW_TRUE;
267  break;
268 
269  default:
270  return LW_FALSE;
271  }
272 }
#define LW_FALSE
Definition: liblwgeom.h:77
#define COLLECTIONTYPE
Definition: liblwgeom.h:91
#define COMPOUNDTYPE
Definition: liblwgeom.h:93
#define MULTILINETYPE
Definition: liblwgeom.h:89
#define MULTISURFACETYPE
Definition: liblwgeom.h:96
#define MULTIPOINTTYPE
Definition: liblwgeom.h:88
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:90
#define POLYHEDRALSURFACETYPE
Definition: liblwgeom.h:97
#define MULTICURVETYPE
Definition: liblwgeom.h:95
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
uint8_t type
Definition: liblwgeom.h:399

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

Referenced by lw_dist2d_recursive().

Here is the caller graph for this function: