PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwpoly_startpoint()

int lwpoly_startpoint ( const LWPOLY poly,
POINT4D pt 
)

Definition at line 531 of file lwpoly.c.

532 {
533  if ( poly->nrings < 1 )
534  return LW_FAILURE;
535  return ptarray_startpoint(poly->rings[0], pt);
536 }
#define LW_FAILURE
Definition: liblwgeom.h:79
int ptarray_startpoint(const POINTARRAY *pa, POINT4D *pt)
Definition: ptarray.c:2001
POINTARRAY ** rings
Definition: liblwgeom.h:460
uint32_t nrings
Definition: liblwgeom.h:458

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

Referenced by lwgeom_startpoint().

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