PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ 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}
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition cu_print.c:267
bool gidx_is_unknown(const GIDX *a)

References gidx_is_unknown(), and result.

Referenced by gserialized_gist_penalty().

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