PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ lwpoly_check_geodetic()

static int lwpoly_check_geodetic ( const LWPOLY poly)
static

Definition at line 3010 of file lwgeodetic.c.

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

Referenced by lwgeom_check_geodetic().

3011 {
3012  uint32_t i = 0;
3013  assert(poly);
3014 
3015  for ( i = 0; i < poly->nrings; i++ )
3016  {
3017  if ( ptarray_check_geodetic(poly->rings[i]) == LW_FALSE )
3018  return LW_FALSE;
3019  }
3020  return LW_TRUE;
3021 }
uint32_t nrings
Definition: liblwgeom.h:457
unsigned int uint32_t
Definition: uthash.h:78
#define LW_FALSE
Definition: liblwgeom.h:76
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:75
POINTARRAY ** rings
Definition: liblwgeom.h:459
static int ptarray_check_geodetic(const POINTARRAY *pa)
Definition: lwgeodetic.c:2980
Here is the call graph for this function:
Here is the caller graph for this function: