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

Definition at line 108 of file gserialized_gist_nd.c.

Referenced by gserialized_gist_compress().

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

Here is the caller graph for this function: