PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ box2df_validate()

static void box2df_validate ( BOX2DF *  b)
inlinestatic

Definition at line 262 of file gserialized_gist_2d.c.

References box2df_to_string().

Referenced by gserialized_gist_compress_2d().

263 {
264  float tmp;
265  POSTGIS_DEBUGF(5,"validating box2df (%s)", box2df_to_string(b));
266  if ( b->xmax < b->xmin )
267  {
268  tmp = b->xmin;
269  b->xmin = b->xmax;
270  b->xmax = tmp;
271  }
272  if ( b->ymax < b->ymin )
273  {
274  tmp = b->ymin;
275  b->ymin = b->ymax;
276  b->ymax = tmp;
277  }
278  return;
279 }
static char * box2df_to_string(const BOX2DF *a)
Here is the call graph for this function:
Here is the caller graph for this function: