PostGIS  2.1.10dev-r@@SVN_REVISION@@
int lwpoly_startpoint ( const LWPOLY lwpoly,

Definition at line 480 of file lwpoly.c.

References LW_FAILURE, LWPOLY::nrings, ptarray_startpoint(), and LWPOLY::rings.

Referenced by lwgeom_startpoint().

481 {
482  if ( poly->nrings < 1 )
483  return LW_FAILURE;
484  return ptarray_startpoint(poly->rings[0], pt);
485 }
#define LW_FAILURE
Definition: liblwgeom.h:54
int ptarray_startpoint(const POINTARRAY *pa, POINT4D *pt)
Definition: ptarray.c:1740

Here is the call graph for this function:

Here is the caller graph for this function: