PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ lwgeom_has_patches()

int lwgeom_has_patches ( const LWGEOM geom)

Definition at line 1126 of file lwgeom.c.

1127 {
1128  switch (geom->type)
1129  {
1130  case TINTYPE:
1131  case POLYHEDRALSURFACETYPE:
1132  return LW_TRUE;
1133  break;
1134  default:
1135  return LW_FALSE;
1136  }
1137 }
#define LW_FALSE
Definition: liblwgeom.h:94
#define TINTYPE
Definition: liblwgeom.h:116
#define POLYHEDRALSURFACETYPE
Definition: liblwgeom.h:114
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:93
uint8_t type
Definition: liblwgeom.h:462

References LW_FALSE, LW_TRUE, POLYHEDRALSURFACETYPE, TINTYPE, and LWGEOM::type.

Referenced by lwgeom_count_geometries(), lwgeom_extract_geometry_n(), LWGEOM_numpatches(), and LWGEOM_patchn().

Here is the caller graph for this function: