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

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 }
char * s
Definition: cu_in_wkt.c:23
#define LW_FAILURE
Definition: liblwgeom.h:79
#define LW_SUCCESS
Definition: liblwgeom.h:80
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:1393
static LISTNODE * prepend_node(void *g, LISTNODE *front)
Definition: lwiterator.c:53

References LW_FAILURE, LW_SUCCESS, lwgeom_is_empty(), prepend_node(), and s.

Referenced by lwpointiterator_create_rw(), and unroll_collection().

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