PostGIS  2.5.0dev-r@@SVN_REVISION@@
static void analyze_val ( struct geobuf_agg_context ctx,
double  val 
)
static

Definition at line 440 of file geobuf.c.

References geobuf_agg_context::e, and MAX_PRECISION.

Referenced by analyze_pa().

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

Here is the caller graph for this function: