PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ lwcollection_check_geodetic()

static int lwcollection_check_geodetic ( const LWCOLLECTION col)
static

Definition at line 2958 of file lwgeodetic.c.

2959 {
2960  uint32_t i = 0;
2961  assert(col);
2962 
2963  for ( i = 0; i < col->ngeoms; i++ )
2964  {
2965  if ( lwgeom_check_geodetic(col->geoms[i]) == LW_FALSE )
2966  return LW_FALSE;
2967  }
2968  return LW_TRUE;
2969 }
#define LW_FALSE
Definition: liblwgeom.h:109
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:108
int lwgeom_check_geodetic(const LWGEOM *geom)
Check that coordinates of LWGEOM are all within the geodetic range (-180, -90, 180,...
Definition: lwgeodetic.c:2971
uint32_t ngeoms
Definition: liblwgeom.h:595
LWGEOM ** geoms
Definition: liblwgeom.h:590

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

Referenced by lwgeom_check_geodetic().

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