Resolves a study-area name to an sf boundary. The primary case is an ecoregion study-area group (see build_studyarea_crosswalk()): its member FMA/TSA/FML polygons are looked up in crosswalk and unioned into one boundary. Alberta FMU names and the "random" test area are handled specially, and legacy single-FMA registry names (LandWebStudyAreas) still resolve for back-compatibility.

prepStudyArea(name, destinationPath, targetCRS = LandWebCRS, crosswalk = NULL)

prepTestStudyArea(destinationPath, targetCRS = LandWebCRS, .seed = 867)

Arguments

name

A study-area group token (e.g. "WesternAlbertaUpland"), an Alberta FMU name, "random", or a legacy LandWebStudyAreas name.

destinationPath

character specifying path to destination directory

targetCRS

character specifying the CRS to reproject polygons to

crosswalk

the study-area grouping crosswalk (see studyAreaCrosswalk()). If NULL (default) it is built/loaded via studyAreaCrosswalk(); pass a precomputed one (e.g. a cached pipeline target) to avoid rebuilding it.

.seed

integer specifying the random seed to use to generate study area boundary

Value

sf polygons object.