PostGIS  2.5.0dev-r@@SVN_REVISION@@
static float gidx_edge ( GIDX *  a)
static

Definition at line 234 of file gserialized_gist_nd.c.

References gidx_is_unknown().

Referenced by gserialized_gist_penalty().

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

Here is the call graph for this function:

Here is the caller graph for this function: