PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void gidx_validate ( GIDX *  b)
inlinestatic

Definition at line 103 of file gserialized_gist_nd.c.

Referenced by gserialized_gist_compress().

104 {
105  int i;
106  Assert(b);
107  POSTGIS_DEBUGF(5,"validating gidx (%s)", gidx_to_string(b));
108  for ( i = 0; i < GIDX_NDIMS(b); i++ )
109  {
110  if ( GIDX_GET_MIN(b,i) > GIDX_GET_MAX(b,i) )
111  {
112  float tmp;
113  tmp = GIDX_GET_MIN(b,i);
114  GIDX_SET_MIN(b,i,GIDX_GET_MAX(b,i));
115  GIDX_SET_MAX(b,i,tmp);
116  }
117  }
118  return;
119 }

Here is the caller graph for this function: