PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ lwgeom_has_patches()

int lwgeom_has_patches ( const LWGEOM geom)

Definition at line 1154 of file lwgeom.c.

1155 {
1156  switch (geom->type)
1157  {
1158  case TINTYPE:
1159  case POLYHEDRALSURFACETYPE:
1160  return LW_TRUE;
1161  break;
1162  default:
1163  return LW_FALSE;
1164  }
1165 }
#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: