PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ analyze_val()

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

Definition at line 454 of file geobuf.c.

455 {
456  if (fabs((round(val * ctx->e) / ctx->e) - val) >= EPSILON &&
457  ctx->e < MAX_PRECISION)
458  ctx->e *= 10;
459 }
#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: