PostGIS  2.5.0dev-r@@SVN_REVISION@@
int lwcollection_startpoint ( const LWCOLLECTION col,
POINT4D pt 
)

Definition at line 557 of file lwcollection.c.

References LWCOLLECTION::geoms, LW_FAILURE, lwgeom_startpoint(), and LWCOLLECTION::ngeoms.

Referenced by lwgeom_startpoint().

558 {
559  if ( col->ngeoms < 1 )
560  return LW_FAILURE;
561 
562  return lwgeom_startpoint(col->geoms[0], pt);
563 }
int lwgeom_startpoint(const LWGEOM *lwgeom, POINT4D *pt)
Definition: lwgeom.c:2108
uint32_t ngeoms
Definition: liblwgeom.h:506
#define LW_FAILURE
Definition: liblwgeom.h:78
LWGEOM ** geoms
Definition: liblwgeom.h:508

Here is the call graph for this function:

Here is the caller graph for this function: