PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ nd_box_merge()

static int nd_box_merge ( const ND_BOX source,
ND_BOX target 
)
static

Create a printable view of the ND_STATS histogram.

Caller is responsible for freeing. Currently only prints first two dimensions.Expand the bounds of target to include source

Definition at line 504 of file gserialized_estimate.c.

References ND_BOX_T::max, ND_BOX_T::min, ND_DIMS, and TRUE.

Referenced by compute_gserialized_stats_mode().

505 {
506  int d;
507  for ( d = 0; d < ND_DIMS; d++ )
508  {
509  target->min[d] = Min(target->min[d], source->min[d]);
510  target->max[d] = Max(target->max[d], source->max[d]);
511  }
512  return TRUE;
513 }
#define ND_DIMS
The maximum number of dimensions our code can handle.
float4 max[ND_DIMS]
float4 min[ND_DIMS]
#define TRUE
Definition: dbfopen.c:169
Here is the caller graph for this function: