PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ lwpoly_force_geodetic()

static int lwpoly_force_geodetic ( LWPOLY poly)
static

Definition at line 3106 of file lwgeodetic.c.

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

Referenced by lwgeom_force_geodetic().

3107 {
3108  uint32_t i = 0;
3109  int changed = LW_FALSE;
3110  assert(poly);
3111 
3112  for ( i = 0; i < poly->nrings; i++ )
3113  {
3114  if ( ptarray_force_geodetic(poly->rings[i]) == LW_TRUE )
3115  changed = LW_TRUE;
3116  }
3117  return changed;
3118 }
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_force_geodetic(POINTARRAY *pa)
Definition: lwgeodetic.c:3072
Here is the call graph for this function:
Here is the caller graph for this function: