PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwcollection_force_geodetic()

static int lwcollection_force_geodetic ( LWCOLLECTION col)
static

Definition at line 3192 of file lwgeodetic.c.

References LWCOLLECTION::geoms, LW_FALSE, LW_TRUE, lwgeom_force_geodetic(), and LWCOLLECTION::ngeoms.

Referenced by lwgeom_force_geodetic().

3193 {
3194  int i = 0;
3195  int changed = LW_FALSE;
3196  assert(col);
3197 
3198  for ( i = 0; i < col->ngeoms; i++ )
3199  {
3200  if ( lwgeom_force_geodetic(col->geoms[i]) == LW_TRUE )
3201  changed = LW_TRUE;
3202  }
3203  return changed;
3204 }
int lwgeom_force_geodetic(LWGEOM *geom)
Force coordinates of LWGEOM into geodetic range (-180, -90, 180, 90)
Definition: lwgeodetic.c:3206
#define LW_FALSE
Definition: liblwgeom.h:77
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
LWGEOM ** geoms
Definition: liblwgeom.h:509
Here is the call graph for this function:
Here is the caller graph for this function: