PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwgeom_subgeom()

static const LWGEOM* lwgeom_subgeom ( const LWGEOM g,
int  n 

Definition at line 32 of file lwgeom_geos_node.c.

References lwcollection_getsubgeom(), and lwgeom_as_lwcollection().

Referenced by lwgeom_collect_endpoints(), and lwgeom_node().

33 {
35  if ( c ) return lwcollection_getsubgeom((LWCOLLECTION*)c, n);
36  else return g;
37 }
LWGEOM * lwcollection_getsubgeom(LWCOLLECTION *col, int gnum)
Definition: lwcollection.c:100
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: