PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ lwcircstring_is_closed()

int lwcircstring_is_closed ( const LWCIRCSTRING curve)

Definition at line 261 of file lwcircstring.c.

References LWCIRCSTRING::flags, FLAGS_GET_Z, LWCIRCSTRING::points, ptarray_is_closed_2d(), and ptarray_is_closed_3d().

Referenced by lwgeom_is_closed(), test_isclosed(), and wkt_parser_curvepolygon_add_ring().

262 {
263  if (FLAGS_GET_Z(curve->flags))
264  return ptarray_is_closed_3d(curve->points);
265 
266  return ptarray_is_closed_2d(curve->points);
267 }
uint8_t flags
Definition: liblwgeom.h:443
int ptarray_is_closed_3d(const POINTARRAY *pa)
Definition: ptarray.c:701
int ptarray_is_closed_2d(const POINTARRAY *pa)
Definition: ptarray.c:688
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
Definition: liblwgeom.h:139
POINTARRAY * points
Definition: liblwgeom.h:446
Here is the call graph for this function:
Here is the caller graph for this function: