Skip to contents

A unit is offered iff (a) the manifest gives it PMTiles, (b) at least two of its zones carry a composite score_% metric, and (c) at least two of those keys exist in the published geometry. (c) is what excludes the whole-study-area rollups — USA on v8, FULL on v7 — without hardcoding either name; pass geom_keys to apply it, and it is skipped (with the reason recorded) when the geometry is not available to the builder.

Usage

app_units(con, manifest, geom_keys = list(), chosen = NULL)

Arguments

con

a DBI connection to a release database

manifest

a manifest from manifest_build() / atlas_manifest(), whose zones rows carry fld and pmtiles

geom_keys

optional named list zone_type -> character keys present in the published geometry

Value

a list of unit objects for boot.json