PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwpoly_startpoint()

int lwpoly_startpoint ( const LWPOLY lwpoly,
POINT4D pt 
)

Definition at line 501 of file lwpoly.c.

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

Referenced by lwgeom_startpoint().

502 {
503  if ( poly->nrings < 1 )
504  return LW_FAILURE;
505  return ptarray_startpoint(poly->rings[0], pt);
506 }
#define LW_FAILURE
Definition: liblwgeom.h:64
int ptarray_startpoint(const POINTARRAY *pa, POINT4D *pt)
Definition: ptarray.c:1826
Here is the call graph for this function:
Here is the caller graph for this function: