PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwgeom_ngeoms()

static int lwgeom_ngeoms ( const LWGEOM n)

Definition at line 24 of file lwgeom_geos_node.c.

References lwgeom_as_lwcollection(), and LWCOLLECTION::ngeoms.

Referenced by lwgeom_collect_endpoints(), and lwgeom_node().

25 {
27  if ( c ) return c->ngeoms;
28  else return 1;
29 }
LWCOLLECTION * lwgeom_as_lwcollection(const LWGEOM *lwgeom)
Definition: lwgeom.c:143
Here is the call graph for this function:
Here is the caller graph for this function: