The reporting-polygon layers considered for LandWeb/NRV summaries. Each is
fetched, clipped to the study area with spatialutils::prep_vector(), and
kept only if it intersects (see buildReportingPolygons()). source is one of
"drive" (a Google Drive file id), "url" (a direct URL to a zipped
shapefile), or "geojson" (a URL returning GeoJSON directly, e.g. an ArcGIS
REST query endpoint – fetched with no archive-extraction step);
labelCols names the attribute(s) holding the sub-region label.
reportingPolygonLayers()A tibble with columns key, NAME_SHORT, isTenure, cross,
source, id, labelCols, and where.
labelCols is a comma-separated priority list, coalesced left to right, because the
v10 layers were assembled by merging per-jurisdiction sources and several name their
features in different columns depending on the province. The Caribou ranges are the sharp
case: RANGE_NAME is populated for only 21 of the 74 ranges (Ontario and Manitoba) —
British Columbia uses HERD_NAME, Alberta LOCALRANGE, Saskatchewan CONUNIT/RNGEUNIT
— so labelling on RANGE_NAME alone left 53 ranges unnamed. Unnamed features are dropped
downstream, which silently removed every tenure x Caribou reporting unit outside ON/MB.
NAME_SHORT is the curated short token that names the layer everywhere it is
keyed: it is the name of the layer's entry in the buildReportingPolygons()
list, the second half of a crossed unit's name
("<tenure NAME_SHORT> <layer NAME_SHORT>", see
buildCrossedReportingPolygons()), and — via .slug() — the refCode that
keys the parquet aggregates and figure files. key is retained as the human
title for reports. See validateShortNames() for the invariants enforced.
isTenure marks the tenure layer — the forest-management boundaries every
other layer is crossed against (buildCrossedReportingPolygons()). Exactly one
layer may carry it.
cross marks the layers crossed with each tenure by
buildCrossedReportingPolygons(), reproducing the v2 per-tenure reporting units.
Every non-tenure layer is crossed: reporting is studyAreaReporting intersected
by tenure, so a stand-alone layer covering ground outside the tenures has
nothing to report against.
A reporting layer may be assembled from several sources: rows sharing a
NAME_SHORT are built independently and then merged into one layer (reduced to the
common Name column). where optionally keeps only the features whose label matches
a regular expression, so a supplementary source can contribute just the part the
primary source is missing. Removing a supplement later is a one-row deletion.
A table passed to buildReportingPolygons() may also have these optional columns (see
nationalReportingLayers()): query, an OGR SQL query read with the source; layer, which file
of a multi-file download to read, by its name without the extension; dissolve, TRUE to
merge each unit's features into one so that overlaps count once; and labelMap, a list column
holding a named character vector that renames each source label (names) to its unit name
(values), dropping with a warning the features whose label it lacks.