PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ analyze_val()

static void analyze_val ( struct geobuf_agg_context ctx,
double  val 
)
static

Definition at line 441 of file geobuf.c.

442 {
443  if (fabs((round(val * ctx->e) / ctx->e) - val) >= EPSILON &&
444  ctx->e < MAX_PRECISION)
445  ctx->e *= 10;
446 }
#define MAX_PRECISION
Definition: geobuf.c:31
uint32_t e
Definition: geobuf.h:57

References geobuf_agg_context::e, and MAX_PRECISION.

Referenced by analyze_pa().

Here is the caller graph for this function: