PostGIS  2.3.7dev-r@@SVN_REVISION@@

◆ lwgeom_subgeom()

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

Definition at line 41 of file lwgeom_geos_node.c.

References lwcollection_getsubgeom(), and lwgeom_as_lwcollection().

Referenced by lwgeom_collect_endpoints(), and lwgeom_node().

42 {
44  if ( c ) return lwcollection_getsubgeom((LWCOLLECTION*)c, n);
45  else return g;
46 }
LWGEOM * lwcollection_getsubgeom(LWCOLLECTION *col, int gnum)
Definition: lwcollection.c:113
LWCOLLECTION * lwgeom_as_lwcollection(const LWGEOM *lwgeom)
Definition: lwgeom.c:156
Here is the call graph for this function:
Here is the caller graph for this function: