PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwcollection_startpoint()

int lwcollection_startpoint ( const LWCOLLECTION col,
POINT4D pt 
)

Definition at line 571 of file lwcollection.c.

572 {
573  if ( col->ngeoms < 1 )
574  return LW_FAILURE;
575 
576  return lwgeom_startpoint(col->geoms[0], pt);
577 }
int lwgeom_startpoint(const LWGEOM *lwgeom, POINT4D *pt)
Definition: lwgeom.c:2122
#define LW_FAILURE
Definition: liblwgeom.h:79
uint32_t ngeoms
Definition: liblwgeom.h:510
LWGEOM ** geoms
Definition: liblwgeom.h:512

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

Referenced by lwgeom_startpoint().

Here is the call graph for this function:
Here is the caller graph for this function: