PostGIS  2.5.7dev-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.

146 {
147  while(s->geoms && lwgeom_is_collection(s->geoms->item))
148  {
150  }
151 }
char * s
Definition: cu_in_wkt.c:23
int lwgeom_is_collection(const LWGEOM *lwgeom)
Determine whether a LWGEOM can contain sub-geometries or not.
Definition: lwgeom.c:1085
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

References lwgeom_is_collection(), s, and unroll_collection().

Referenced by lwpointiterator_advance().

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