PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ gidx_volume()

static float gidx_volume ( GIDX *  a)
static

Definition at line 204 of file gserialized_gist_nd.c.

205 {
206  float result;
207  uint32_t i;
208  if (!a || gidx_is_unknown(a))
209  return 0.0;
210  result = GIDX_GET_MAX(a, 0) - GIDX_GET_MIN(a, 0);
211  for (i = 1; i < GIDX_NDIMS(a); i++)
212  result *= (GIDX_GET_MAX(a, i) - GIDX_GET_MIN(a, i));
213  POSTGIS_DEBUGF(5, "calculated volume of %s as %.8g", gidx_to_string(a), result);
214  return result;
215 }
bool gidx_is_unknown(const GIDX *a)

References gidx_is_unknown().

Referenced by gidx_union_edge(), gidx_union_volume(), and gserialized_gist_penalty().

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