PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ gidx_edge()

static float gidx_edge ( GIDX *  a)
static

Definition at line 235 of file gserialized_gist_nd.c.

236 {
237  float result;
238  uint32_t i;
239  if ( a == NULL || gidx_is_unknown(a) )
240  {
241  return 0.0;
242  }
243  result = GIDX_GET_MAX(a,0) - GIDX_GET_MIN(a,0);
244  for ( i = 1; i < GIDX_NDIMS(a); i++ )
245  result += (GIDX_GET_MAX(a,i) - GIDX_GET_MIN(a,i));
246  POSTGIS_DEBUGF(5, "calculated edge of %s as %.8g", gidx_to_string(a), result);
247  return result;
248 }
bool gidx_is_unknown(const GIDX *a)
unsigned int uint32_t
Definition: uthash.h:78

References gidx_is_unknown().

Referenced by gserialized_gist_penalty().

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