PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ lwgeom_ngeoms()

static int lwgeom_ngeoms ( const LWGEOM n)
static

Definition at line 33 of file lwgeom_geos_node.c.

References lwgeom_as_lwcollection(), and LWCOLLECTION::ngeoms.

Referenced by lwgeom_collect_endpoints(), and lwgeom_node().

34 {
36  if ( c ) return c->ngeoms;
37  else return 1;
38 }
uint32_t ngeoms
Definition: liblwgeom.h:509
LWCOLLECTION * lwgeom_as_lwcollection(const LWGEOM *lwgeom)
Definition: lwgeom.c:224
Here is the call graph for this function:
Here is the caller graph for this function: