PostGIS  3.0.6dev-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 202 of file lwiterator.c.

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

References LW_FALSE, LW_TRUE, and s.

Referenced by count_points_using_iterator(), lwgeom_isfinite(), 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: