Return true or false depending on whether a geometry is a linear feature that closes on itself.
Definition at line 1035 of file lwgeom.c.
1036{
1038
1041
1042
1043 switch (type)
1044 {
1057 }
1058
1059
1061 {
1063 uint32_t i;
1064 int closed;
1065 for ( i = 0; i < col->
ngeoms; i++ )
1066 {
1068 if ( ! closed )
1070 }
1072 }
1073
1074
1076}
#define POLYHEDRALSURFACETYPE
#define LW_TRUE
Return types for functions with status returns.
int lwcircstring_is_closed(const LWCIRCSTRING *curve)
int lwline_is_closed(const LWLINE *line)
int lwcompound_is_closed(const LWCOMPOUND *curve)
int lwpsurface_is_closed(const LWPSURFACE *psurface)
int lwtin_is_closed(const LWTIN *tin)
int lwpoly_is_closed(const LWPOLY *poly)
int lwgeom_is_closed(const LWGEOM *geom)
Return true or false depending on whether a geometry is a linear feature that closes on itself.
int lwgeom_is_collection(const LWGEOM *geom)
Determine whether a LWGEOM can contain sub-geometries or not.
LWCOLLECTION * lwgeom_as_lwcollection(const LWGEOM *lwgeom)
static int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
References CIRCSTRINGTYPE, COMPOUNDTYPE, LWCOLLECTION::geoms, LINETYPE, LW_FALSE, LW_TRUE, lwcircstring_is_closed(), lwcompound_is_closed(), lwgeom_as_lwcollection(), lwgeom_is_closed(), lwgeom_is_collection(), lwgeom_is_empty(), lwline_is_closed(), lwpoly_is_closed(), lwpsurface_is_closed(), lwtin_is_closed(), LWCOLLECTION::ngeoms, POLYGONTYPE, POLYHEDRALSURFACETYPE, TINTYPE, and LWGEOM::type.
Referenced by lwgeom_dimensionality(), lwgeom_is_closed(), and LWGEOM_isclosed().