Fetch each candidate reporting layer (reportingPolygonLayers()), clip it to
studyArea with spatialutils::prep_vector(), and keep only those that
intersect – a layer that does not overlap the study area is dropped
(nrow == 0), which replaces the former per-study-area hardcoding. Downloads
use the idempotent workflowtools *_once helpers (bypassing
reproducible::prepInputs). The result is a named list keyed by each layer's
curated NAME_SHORT (which is what refCode is slugged from, so the on-disk
key matches the label in the figures), suitable as the reportingPolygons
input to NRV_summary; each layer's labelCols label is copied to a common Name
column. The "CC SAM"/"CC TSF" (current condition) and "ecoregionLayer"
entries that NRV_summary also expects come from the simulation, not from
here, and are merged in separately.
buildReportingPolygons(
studyArea,
destinationPath,
targetCRS = LandWebCRS,
layers = reportingPolygonLayers(),
min_area_km2 = 1
)A SpatVector (or source readable by terra::vect()).
Directory for downloads/extraction.
Target CRS (default LandWebCRS).
Candidate-layer table (default reportingPolygonLayers(), whose help lists the
optional columns query, layer, dissolve and labelMap).
numeric; reporting units (all features sharing a Name) smaller than this
within the study area are merged into the neighbouring unit of the same layer that they share
the longest border with (see spatialutils::eliminate_slivers()), so an edge sliver does not
become a reporting unit of its own. A small unit with no neighbour, or a layer made up only of
small units, is dropped. Default 1; 0 disables it.
A named list of SpatVectors, one per intersecting layer.
The tenure layer (isTenure) is labelled differently: its Name is the
curated tenure short name (tenureShortNames()) resolved from the coalesced
v10 member identity, not the raw labelCols. That both keeps the long (up to
97-character) FMA_NAMEs out of the output keys and gives the non-Alberta
members — whose FMA_NAME is NA — a label at all.