PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwline_is_closed()

int lwline_is_closed ( const LWLINE line)

Definition at line 468 of file lwline.c.

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

Referenced by asx3d3_line_buf(), asx3d3_line_coords(), asx3d3_mline_coordindex(), lwgeom_is_closed(), test_isclosed(), and wkt_parser_curvepolygon_add_ring().

469 {
470  if (FLAGS_GET_Z(line->flags))
471  return ptarray_is_closed_3d(line->points);
473  return ptarray_is_closed_2d(line->points);
474 }
int ptarray_is_closed_3d(const POINTARRAY *pa)
Definition: ptarray.c:710
int ptarray_is_closed_2d(const POINTARRAY *pa)
Definition: ptarray.c:697
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
Definition: liblwgeom.h:140
uint8_t flags
Definition: liblwgeom.h:419
Definition: liblwgeom.h:422
Here is the call graph for this function:
Here is the caller graph for this function: