PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwcollection_startpoint()

int lwcollection_startpoint ( const LWCOLLECTION col,
POINT4D pt 
)

Definition at line 580 of file lwcollection.c.

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

Referenced by lwgeom_startpoint().

581 {
582  if ( col->ngeoms < 1 )
583  return LW_FAILURE;
584 
585  return lwgeom_startpoint(col->geoms[0], pt);
586 }
int lwgeom_startpoint(const LWGEOM *lwgeom, POINT4D *pt)
Definition: lwgeom.c:1881
#define LW_FAILURE
Definition: liblwgeom.h:79
LWGEOM ** geoms
Definition: liblwgeom.h:509
Here is the call graph for this function:
Here is the caller graph for this function: