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

◆ lwline_is_closed()

int lwline_is_closed ( const LWLINE line)

Definition at line 455 of file lwline.c.

456{
457 if (FLAGS_GET_Z(line->flags))
458 return ptarray_is_closed_3d(line->points);
459
460 return ptarray_is_closed_2d(line->points);
461}
int ptarray_is_closed_3d(const POINTARRAY *pa)
Definition ptarray.c:723
#define FLAGS_GET_Z(flags)
Definition liblwgeom.h:165
int ptarray_is_closed_2d(const POINTARRAY *pa)
Definition ptarray.c:710
lwflags_t flags
Definition liblwgeom.h:485
POINTARRAY * points
Definition liblwgeom.h:483

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

Referenced by _lwt_AddLine(), _lwt_GetEqualEdge(), asx3d3_line_coords_sb(), asx3d3_line_sb(), asx3d3_mline_coordindex_sb(), lwgeom_is_closed(), test_isclosed(), and wkt_parser_curvepolygon_add_ring().

Here is the call graph for this function:
Here is the caller graph for this function: