Per-zone summaries, so a report on a Program Area never loads a cell
Source:R/app_bundle.R
app_zones.Rdn_cells and the coverage-weighted area_km2 come from zone_cell joined to
cell; metrics is that zone's zone_metric keyed by metric_key (never by
metric_seq, which is dropped and recreated every run). coverage carries the
v7.1-only {component}_coverage rows when the release has them and is NULL
otherwise — optional by presence, like the methods table.
Arguments
- con
a DBI connection
- flds
zone fields to summarise (default: every
fldinzone)- zone_names
optional
data.frame(fld, key, name)fromapp_zone_names();NULL(default) publishes every zone withname = NULL, exactly as before — this parameter is purely additive. A non-NULLvalue must carryfld/key/namecolumns (stopifnot()), and awarning()fires when it names ZERO of the real zones of a field it lists — the wrongtypeor the wrong geometry file otherwise fails silently (every zone published withname = NULL).- zone_bbox
optional
data.frame(fld, key, w, s, e, n)fromapp_zone_bbox();NULL(default) publishes every zone withbbox = NULL, exactly as before — this parameter is purely additive, same shape of optionality aszone_names. A non-NULLvalue must carryfld/key/w/s/e/ncolumns (stopifnot()).