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

Definition at line 550 of file lwcollection.c.

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

Referenced by lwgeom_startpoint().

551 {
552  if ( col->ngeoms < 1 )
553  return LW_FAILURE;
554 
555  return lwgeom_startpoint(col->geoms[0], pt);
556 }
int lwgeom_startpoint(const LWGEOM *lwgeom, POINT4D *pt)
Definition: lwgeom.c:1692
#define LW_FAILURE
Definition: liblwgeom.h:54
LWGEOM ** geoms
Definition: liblwgeom.h:465

Here is the call graph for this function:

Here is the caller graph for this function: