PostGIS 3.6.2dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwgeom_has_rings()

int lwgeom_has_rings ( const LWGEOM geom)

Is this a type that has rings enclosing an area, but is not a collection of areas? (triangle, polygon, curvepolygon)

Definition at line 1146 of file lwgeom.c.

1147{
1148 switch (geom->type)
1149 {
1150 case POLYGONTYPE:
1151 case CURVEPOLYTYPE:
1152 case TRIANGLETYPE:
1153 return LW_TRUE;
1154 break;
1155
1156 default:
1157 return LW_FALSE;
1158 }
1159}
#define LW_FALSE
Definition liblwgeom.h:94
#define CURVEPOLYTYPE
Definition liblwgeom.h:111
#define POLYGONTYPE
Definition liblwgeom.h:104
#define TRIANGLETYPE
Definition liblwgeom.h:115
#define LW_TRUE
Return types for functions with status returns.
Definition liblwgeom.h:93
uint8_t type
Definition liblwgeom.h:462

References CURVEPOLYTYPE, LW_FALSE, LW_TRUE, POLYGONTYPE, TRIANGLETYPE, and LWGEOM::type.

Referenced by LWGEOM_exteriorring_polygon(), and LWGEOM_numinteriorrings_polygon().

Here is the caller graph for this function: