PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void box2df_validate ( BOX2DF *  b)
inlinestatic

Definition at line 241 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_compress_2d().

242 {
243  float tmp;
244  POSTGIS_DEBUGF(5,"validating box2df (%s)", box2df_to_string(b));
245  if ( b->xmax < b->xmin )
246  {
247  tmp = b->xmin;
248  b->xmin = b->xmax;
249  b->xmax = tmp;
250  }
251  if ( b->ymax < b->ymin )
252  {
253  tmp = b->ymin;
254  b->ymin = b->ymax;
255  b->ymax = tmp;
256  }
257  return;
258 }

Here is the caller graph for this function: