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

Definition at line 138 of file gserialized_gist_nd.c.

Referenced by gserialized_gist_compress().

139 {
140  int i;
141  Assert(b);
142  POSTGIS_DEBUGF(5,"validating gidx (%s)", gidx_to_string(b));
143  for ( i = 0; i < GIDX_NDIMS(b); i++ )
144  {
145  if ( GIDX_GET_MIN(b,i) > GIDX_GET_MAX(b,i) )
146  {
147  float tmp;
148  tmp = GIDX_GET_MIN(b,i);
149  GIDX_SET_MIN(b,i,GIDX_GET_MAX(b,i));
150  GIDX_SET_MAX(b,i,tmp);
151  }
152  }
153  return;
154 }

Here is the caller graph for this function: