PostGIS  2.3.6-r@@SVN_REVISION@@
int lwpoly_startpoint ( const LWPOLY poly,
POINT4D pt 
)

Definition at line 572 of file lwpoly.c.

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

Referenced by lwgeom_startpoint().

573 {
574  if ( poly->nrings < 1 )
575  return LW_FAILURE;
576  return ptarray_startpoint(poly->rings[0], pt);
577 }
#define LW_FAILURE
Definition: liblwgeom.h:78
POINTARRAY ** rings
Definition: liblwgeom.h:456
int nrings
Definition: liblwgeom.h:454
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: