PostGIS  2.2.7dev-r@@SVN_REVISION@@

◆ ptarray_is_closed_z()

int ptarray_is_closed_z ( const POINTARRAY in)

Definition at line 720 of file ptarray.c.

References POINTARRAY::flags, FLAGS_GET_Z, ptarray_is_closed_2d(), and ptarray_is_closed_3d().

Referenced by lwtriangle_from_wkb_state(), and wkt_parser_polygon_add_ring().

721 {
722  if ( FLAGS_GET_Z(in->flags) )
723  return ptarray_is_closed_3d(in);
724  else
725  return ptarray_is_closed_2d(in);
726 }
int ptarray_is_closed_2d(const POINTARRAY *in)
Definition: ptarray.c:694
uint8_t flags
Definition: liblwgeom.h:353
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
Definition: liblwgeom.h:124
int ptarray_is_closed_3d(const POINTARRAY *in)
Definition: ptarray.c:707
Here is the call graph for this function:
Here is the caller graph for this function: