PostGIS  2.4.9dev-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 }
LWCOLLECTION * lwgeom_as_lwcollection(const LWGEOM *lwgeom)
Definition: lwgeom.c:192
Here is the call graph for this function:
Here is the caller graph for this function: