PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwpoly_force_geodetic()

static int lwpoly_force_geodetic ( LWPOLY poly)
static

Definition at line 2781 of file lwgeodetic.c.

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

Referenced by lwgeom_force_geodetic().

2782 {
2783  int i = 0;
2784  int changed = LW_FALSE;
2785  assert(poly);
2786 
2787  for ( i = 0; i < poly->nrings; i++ )
2788  {
2789  if ( ptarray_force_geodetic(poly->rings[i]) == LW_TRUE )
2790  changed = LW_TRUE;
2791  }
2792  return changed;
2793 }
#define LW_FALSE
Definition: liblwgeom.h:62
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:61
POINTARRAY ** rings
Definition: liblwgeom.h:441
int nrings
Definition: liblwgeom.h:439
static int ptarray_force_geodetic(POINTARRAY *pa)
Definition: lwgeodetic.c:2747
Here is the call graph for this function:
Here is the caller graph for this function: