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

Definition at line 332 of file gserialized_gist_2d.c.

References box2df_is_empty(), and box2df_to_string().

Referenced by gserialized_gist_compress_2d().

333 {
334  float tmp;
335  POSTGIS_DEBUGF(5,"validating box2df (%s)", box2df_to_string(b));
336 
337  if ( box2df_is_empty(b) )
338  return;
339 
340  if ( b->xmax < b->xmin )
341  {
342  tmp = b->xmin;
343  b->xmin = b->xmax;
344  b->xmax = tmp;
345  }
346  if ( b->ymax < b->ymin )
347  {
348  tmp = b->ymin;
349  b->ymin = b->ymax;
350  b->ymax = tmp;
351  }
352  return;
353 }
static char * box2df_to_string(const BOX2DF *a)
bool box2df_is_empty(const BOX2DF *a)

Here is the call graph for this function:

Here is the caller graph for this function: