PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwpoly_check_geodetic()

static int lwpoly_check_geodetic ( const LWPOLY poly)
static

Definition at line 3082 of file lwgeodetic.c.

References LW_FALSE, LW_TRUE, LWPOLY::nrings, ptarray_check_geodetic(), and LWPOLY::rings.

Referenced by lwgeom_check_geodetic().

3083 {
3084  int i = 0;
3085  assert(poly);
3086 
3087  for ( i = 0; i < poly->nrings; i++ )
3088  {
3089  if ( ptarray_check_geodetic(poly->rings[i]) == LW_FALSE )
3090  return LW_FALSE;
3091  }
3092  return LW_TRUE;
3093 }
#define LW_FALSE
Definition: liblwgeom.h:77
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
POINTARRAY ** rings
Definition: liblwgeom.h:457
int nrings
Definition: liblwgeom.h:455
static int ptarray_check_geodetic(const POINTARRAY *pa)
Definition: lwgeodetic.c:3052
Here is the call graph for this function:
Here is the caller graph for this function: