PostGIS  3.4.0dev-r@@SVN_REVISION@@
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages

◆ box2df_validate()

void box2df_validate ( BOX2DF *  b)
inline

Definition at line 225 of file gserialized_gist_2d.c.

226 {
227  float tmp;
228 
229  if ( box2df_is_empty(b) )
230  return;
231 
232  if ( b->xmax < b->xmin )
233  {
234  tmp = b->xmin;
235  b->xmin = b->xmax;
236  b->xmax = tmp;
237  }
238  if ( b->ymax < b->ymin )
239  {
240  tmp = b->ymin;
241  b->ymin = b->ymax;
242  b->ymax = tmp;
243  }
244  return;
245 }
bool box2df_is_empty(const BOX2DF *a)

References box2df_is_empty().

Referenced by gserialized_gist_compress_2d(), and gserialized_spgist_compress_2d().

Here is the call graph for this function:
Here is the caller graph for this function: