PostGIS 3.7.0dev-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 1174 of file lwgeom.c.

1175{
1176 switch (geom->type)
1177 {
1178 case POLYGONTYPE:
1179 case CURVEPOLYTYPE:
1180 case TRIANGLETYPE:
1181 return LW_TRUE;
1182 break;
1183
1184 default:
1185 return LW_FALSE;
1186 }
1187}
#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: