PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwcollection_force_geodetic()

static int lwcollection_force_geodetic ( LWCOLLECTION col)
static

Definition at line 3056 of file lwgeodetic.c.

3057{
3058 uint32_t i = 0;
3059 int changed = LW_FALSE;
3060 assert(col);
3061
3062 for ( i = 0; i < col->ngeoms; i++ )
3063 {
3064 if ( lwgeom_force_geodetic(col->geoms[i]) == LW_TRUE )
3065 changed = LW_TRUE;
3066 }
3067 return changed;
3068}
#define LW_FALSE
Definition liblwgeom.h:94
#define LW_TRUE
Return types for functions with status returns.
Definition liblwgeom.h:93
int lwgeom_force_geodetic(LWGEOM *geom)
Force coordinates of LWGEOM into geodetic range (-180, -90, 180, 90)
uint32_t ngeoms
Definition liblwgeom.h:580
LWGEOM ** geoms
Definition liblwgeom.h:575

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

Referenced by lwgeom_force_geodetic().

Here is the call graph for this function:
Here is the caller graph for this function: