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

Definition at line 213 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().

214 {
215 
216  switch (g->type)
217  {
218  case MULTIPOINTTYPE:
219  case MULTILINETYPE:
220  case MULTIPOLYGONTYPE:
221  case COLLECTIONTYPE:
222  case MULTICURVETYPE:
223  case MULTISURFACETYPE:
224  case COMPOUNDTYPE:
226  return LW_TRUE;
227  break;
228 
229  default:
230  return LW_FALSE;
231  }
232 }
#define MULTICURVETYPE
Definition: liblwgeom.h:70
#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 MULTIPOLYGONTYPE
Definition: liblwgeom.h:65
#define MULTISURFACETYPE
Definition: liblwgeom.h:71
uint8_t type
Definition: liblwgeom.h:352
#define MULTILINETYPE
Definition: liblwgeom.h:64
#define COLLECTIONTYPE
Definition: liblwgeom.h:66

Here is the caller graph for this function: