PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ box2df_validate()

static void box2df_validate ( BOX2DF *  b)
inlinestatic

Definition at line 238 of file gserialized_gist_2d.c.

References box2df_to_string().

Referenced by gserialized_gist_compress_2d().

239 {
240  float tmp;
241  POSTGIS_DEBUGF(5,"validating box2df (%s)", box2df_to_string(b));
242  if ( b->xmax < b->xmin )
243  {
244  tmp = b->xmin;
245  b->xmin = b->xmax;
246  b->xmax = tmp;
247  }
248  if ( b->ymax < b->ymin )
249  {
250  tmp = b->ymin;
251  b->ymin = b->ymax;
252  b->ymax = tmp;
253  }
254  return;
255 }
static char * box2df_to_string(const BOX2DF *a)
Here is the call graph for this function:
Here is the caller graph for this function: