PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ add_lwgeom_to_stack()

static int add_lwgeom_to_stack ( LWPOINTITERATOR s,
LWGEOM g 
)
static

Definition at line 71 of file lwiterator.c.

References LWPOINTITERATOR::geoms, LW_FAILURE, LW_SUCCESS, lwgeom_is_empty(), and prepend_node().

Referenced by lwpointiterator_create_rw(), and unroll_collection().

72 {
73  if (lwgeom_is_empty(g))
74  return LW_FAILURE;
75 
76  s->geoms = prepend_node(g, s->geoms);
77  return LW_SUCCESS;
78 }
#define LW_SUCCESS
Definition: liblwgeom.h:80
#define LW_FAILURE
Definition: liblwgeom.h:79
static LISTNODE * prepend_node(void *g, LISTNODE *front)
Definition: lwiterator.c:53
LISTNODE * geoms
Definition: lwiterator.c:46
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members) ...
Definition: lwgeom.c:1346
Here is the call graph for this function:
Here is the caller graph for this function: