PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ box2df_validate()

static void box2df_validate ( BOX2DF *  b)
inlinestatic

Definition at line 297 of file gserialized_gist_2d.c.

References box2df_to_string().

Referenced by gserialized_gist_compress_2d().

298 {
299  float tmp;
300  POSTGIS_DEBUGF(5,"validating box2df (%s)", box2df_to_string(b));
301  if ( b->xmax < b->xmin )
302  {
303  tmp = b->xmin;
304  b->xmin = b->xmax;
305  b->xmax = tmp;
306  }
307  if ( b->ymax < b->ymin )
308  {
309  tmp = b->ymin;
310  b->ymin = b->ymax;
311  b->ymax = tmp;
312  }
313  return;
314 }
static char * box2df_to_string(const BOX2DF *a)
Here is the call graph for this function:
Here is the caller graph for this function: