PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ gidx_edge()

static float gidx_edge ( GIDX *  a)
static

Definition at line 219 of file gserialized_gist_nd.c.

220 {
221  float result;
222  uint32_t i;
223  if (!a || gidx_is_unknown(a))
224  return 0.0;
225  result = GIDX_GET_MAX(a, 0) - GIDX_GET_MIN(a, 0);
226  for (i = 1; i < GIDX_NDIMS(a); i++)
227  result += (GIDX_GET_MAX(a, i) - GIDX_GET_MIN(a, i));
228  POSTGIS_DEBUGF(5, "calculated edge of %s as %.8g", gidx_to_string(a), result);
229  return result;
230 }
bool gidx_is_unknown(const GIDX *a)

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: