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

144 {
145  while(s->geoms && lwgeom_is_collection(s->geoms->item))
146  {
148  }
149 }
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:1079
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:118

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: