PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwpointiterator_has_next()

int lwpointiterator_has_next ( LWPOINTITERATOR s)

Returns LW_TRUE if there is another point available in the iterator.

Definition at line 204 of file lwiterator.c.

205 {
206  if (s->pointarrays && s->i < ((POINTARRAY*) s->pointarrays->item)->npoints)
207  return LW_TRUE;
208  return LW_FALSE;
209 }
char * s
Definition: cu_in_wkt.c:23
#define LW_FALSE
Definition: liblwgeom.h:77
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76

References LW_FALSE, LW_TRUE, and s.

Referenced by count_points_using_iterator(), lwgeom_trim_bits_in_place(), lwpointiterator_modify_next(), lwpointiterator_next(), lwpointiterator_peek(), test_mixed_rw_access(), test_modification(), and test_ordering().

Here is the caller graph for this function: