PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwpoly_force_geodetic()

static int lwpoly_force_geodetic ( LWPOLY poly)
static

Definition at line 3178 of file lwgeodetic.c.

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

Referenced by lwgeom_force_geodetic().

3179 {
3180  int i = 0;
3181  int changed = LW_FALSE;
3182  assert(poly);
3183 
3184  for ( i = 0; i < poly->nrings; i++ )
3185  {
3186  if ( ptarray_force_geodetic(poly->rings[i]) == LW_TRUE )
3187  changed = LW_TRUE;
3188  }
3189  return changed;
3190 }
#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_force_geodetic(POINTARRAY *pa)
Definition: lwgeodetic.c:3144
Here is the call graph for this function:
Here is the caller graph for this function: