PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ unroll_collections()

static void unroll_collections ( LWPOINTITERATOR s)
static

Unroll LWCOLLECTIONs from the top of the stack, as necessary, until the element at the top of the stack is not a LWCOLLECTION.

Definition at line 145 of file lwiterator.c.

References LWPOINTITERATOR::geoms, LISTNODE::item, lwgeom_is_collection(), and unroll_collection().

Referenced by lwpointiterator_advance().

146 {
147  while(s->geoms && lwgeom_is_collection(s->geoms->item))
148  {
150  }
151 }
int lwgeom_is_collection(const LWGEOM *lwgeom)
Determine whether a LWGEOM can contain sub-geometries or not.
Definition: lwgeom.c:1040
static void unroll_collection(LWPOINTITERATOR *s)
Remove an LWCOLLECTION from the iterator stack, and add the components of the LWCOLLECTIONs to the st...
Definition: lwiterator.c:120
LISTNODE * geoms
Definition: lwiterator.c:46
void * item
Definition: lwiterator.c:32
Here is the call graph for this function:
Here is the caller graph for this function: