Skip to contents

This package has a number of functions to assist in completing the desktop analysis components of WESP-BC. One important step is to download the spatial data required for analysis. A full list of suggested datasets is provided below. These data sets comprise two types 1) data which can be downloaded directly using the bcdata package and 2) data sets which require manual download. A full list of data sets is provided below.

For those datasets which are accessible via the bcdata package, we can use the function import_spatial_data() function to automate this process.

The user is required to input an area of interest for a given wetland or wetland areas and an output file location where the datasets will be saved in .gpkg format. Within this function we also generate an expanded area of interest by buffering the aoi by 10 kms (aoi_buffer_10km.gpkg). This provides an expanded aoi by which many of the datasets are clipped to and downloaded.


1) Example workflow

To run the function you will need two parameters. 1) A geospatial file (.gpkg) which defined the area of interest for your wetland. 2) An output folder location, into which processed data sets will be saved.

# install packages if required
# install.packages(c("sf", "bcdata"))

#library(sf)
#library(bcdata)

library(wespr)

We provide an example aoi wetland within this package in the format of a geopackage (.gpkg).

# read in aoi dataset 
example_dir <- system.file("extdata", package = "wespr")

aoi <- sf::st_read(fs::path(example_dir, "aoi_example.gpkg"))

Our first step is to define the file folder where we want the outputs to be saved

# define an output path to which datsets will be saved into
out_dir = fs::path("./temp/spatial_layers")

# run the function and wait
import_spatial_data(aoi, out_dir)

You will receive messages as the function progresses to provide details on what has been processed and if there are any data sets which do not contain relevant information within your aoi.



2) Required data sets

Data sets downloaded within the import_spatial_data() function:

  1. Watershed Assessment Unit. This is predominantly used as a boundary on which other questions may relate and is filtered to the 10km boundary, then the entire wau is selected. Output file name = wau.gpkg

  2. Historic Fire Perimeters. Fires are filter to those occurring after 2010 with a boundary of 10 km buffer.

  3. BC Historical Fish Distribution Points (50,000) (Government of British Columbia, 2006). Fish distribution is filtered to a 10 km buffer. Output file = fish_obs_10km.gpkg.

  4. Conservation Lands (Government of British Columbia, 2025c). Conservation land type intersected with the 10 km buffer. Output file = cons_lands_10km.gpkg.

  5. Critical Habitat for Federally-Listed Species at Risk-Posted (Government of British Columbia, 2024a). Critical habitat filtered to a 10km buffer. Output file = crit_hab_10km.gpkg.

  6. Digital Road Atlas (DRA)- Attributed Roads (Government of British Columbia, 2025d). Roads are intersected with the 10km buffered boundary. Output file = roads_10km.gpkg.

  7. Ecoprovinces - Ecoregion Ecosystem Classification of British Columbia (Government of British Columbia, 2004). Intersect the aoi with the Ecoprovinces to select the ecoprovince in which the wetland is within. Output file = eco_10km.gpkg.

  8. Freshwater Atlas Lakes (Government of British Columbia, 2008b). The freshwater atlas lakes is intersected with the 10km buffered boundary, with the following fields retained ; “WATERBODY_POLY_ID”, “WATERSHED_GROUP_ID”, “WATERBODY_TYPE”, “AREA_HA”. The output file = fwa_lakes_10km.gpkg.

  9. Freshwater Atlas Rivers (Government of British Columbia, 2025e). The freshwater atlas rivers is intersected with the 10km buffered boundary, with the following fields retained; “GNIS_NAME_1” and “WATERSHED_GROUP_ID” The output file = fwa_rivers_10km.gpkg.

  10. Freshwater Atlas Stream Directions (Government of British Columbia, 2023b).The freshwater atlas streams is intersected with the 10km buffered boundary. The output file = fwa_stdir_10km.gpkg.

  11. Freshwater Atlas Glaciers (Government of British Columbia, 2008a). The freshwater atlas glaciers is intersected with the 10km buffered boundary, with the following fields retained; WATERSHED_GROUP_CODE and WATERSHED_GROUP_ID. The output file = fwa_glacier_10km.gpkg.

  12. Freshwater Atlas Stream Network (Government of British Columbia, 2024b). The stream network is intersected with the 10 km buffer. The features with an EDGE_TYPE = Flow Connector (1450), Isolated (1400), Waterbody Skeletons (1200,1300), Underground Connector (1425),Inferred Connector (1410) are selected. Of these the following fields are retained: Edge_type, Linear_feature_ID, Watershed_group_ID, Feature_code, GNES_name. The output file = “fwa_stn_10km.gpkg”.

  13. Freshwater Atlas Watershed Groups (Government of British Columbia, 2008c).This data set is intersected with the 10 km buffer. It is used to estimate the max and min elevation (m) fields for each watershed (by Watershed_Group_Code). Future update to use regional lidar for more accurate elevations. The output file = “fwa_stn_10km.gpkg”.

  14. Freshwater Atlas Watershed Boundaries (Government of British Columbia, 2025f). This data set is intersected with the 10 km buffer and the following fields retained: WATERSHED_GROUP_CODE, FEATURE_SOURCE, OBJECTID, WATERSHED_GROUP_ID. The output file is “fwa_wsb_10km.gpkg”).

  15. Freshwater Atlas Wetlands (Government of British Columbia, 2025g) This data set is intersected with the 10 km buffer and the output file = “fwa_wetlands_10km.gpkg”.

  16. Geology Faults (Government of British Columbia, 2018) This data set is intersected with the 10 km buffer and the output file = “geo_fault_10km.gpkg”.

  17. Glaciers (Government of British Columbia, 2025h) This data set is intersected with the 10 km buffer and the output file = “glaciers_10km.gpkg”.

  18. Municipalities Legally Defined Administrative Areas of BC (Government of British Columbia, 2016) This data set is intersected with the 10 km buffer and the following fields are retained : ADMIN_AREA_NAME, ADMIN_AREA_ABBREVIATION, OIC_MO_YEAR. The output file is “municipals_10km.gpkg”).

  19. BC Towns. This data set is intersected with the 10 km buffer with the output file = “bc_major_towns.gpkg”.

  20. NGO Conservation Areas Fee Simple (Government of British Columbia, 2024c) This data set is intersected with the 10 km buffer with the output file = “ngo_10km.gpkg”.

  21. Reconnaissance Karst Potential Mapping (Government of British Columbia, 2002).This data set is intersected with the 10 km buffer with the output file = “karst_10km.gpkg”.

  22. Species and Ecosystems at Risk Publicly Available Occurrences - CDC (Government of British Columbia, 2025i). This data set is intersected with the 10 km buffer with the output file = “SAR_10km.gpkg”.

  23. TANTALIS Wildlife Management Areas (Government of British Columbia, 2025k) This data set is intersected with the 10 km buffer with the output file = “wma_10km.gpkg”.

  24. TANTALIS Conservancy Areas (Government of British Columbia, 2025j). This data set is intersected with the 10 km buffer with the output file = “cons_area_10km.gpkg”.

  25. Ungulate Winter Range Approved (Government of British Columbia, 2025l). This data set is intersected with the 10 km buffer with the output file = “uwr_10km.gpkg”.

  26. VRI 2024 Forest Vegetation Composite Polygons (Government of British Columbia, 2024d) .This data set is intersected with the 10 km buffer. The following fields are retained: Site index, Site_Position_Meso, Bclcs_level_5, Bclcs_level_4 (forest type), bclcs_level_3 (wetlands), bclcs_level_2 (treed/non-treed/land/water), bclcs_level_1 (vegetated or non-vegetated). The output file is “vri_10km.gpkg”.

  27. Wildlife Species Inventory Incidental Observations Publicly Available (Government of British Columbia, 2025o). This data set is intersected with the 10 km buffer with the output file = “wsi_10km.gpkg”.

  28. Wildlife Species Inventory Survey Observations Publicly Available (Government of British Columbia, 2025n). This data set is intersected with the 10 km buffer with the output file = “wsi2_10km.gpkg”.

  29. Wildlife Species Inventory Telemetry Points Publicly Available (Government of British Columbia, 2025p). This data set is intersected with the 10 km buffer with the output file = “wsi3_10km.gpkg”.

  30. Wildlife Habitat Features Incidental Observations Publicly Available (Government of British Columbia, 2025m) This data set is intersected with the 10 km buffer with the output file = “wsi4_10km.gpkg”.

  31. Wildlife Habitat Features Survey Observations Publicly Available (Government of British Columbia, 2025n). This data set is intersected with the 10 km buffer with the output file = “wsi5_10km.gpkg”.


Data sets which need to be downloaded manually

  1. BC Cumulative Effects Framework - Human Disturbance (Government of British Columbia, 2023a).The following fields are retained: Natural vs disturbed, Disturbed = Agriculture and clearing, cutblocks, mining and extraction, OGC Geophysical, OGC Infrastructure, Power, ROW, Rail and infrastructure, Urban. Natural = all other categories (under CEF Disturb Group)

  2. BC Cumulative Effects Framework – Integrated Roads – 2025 (Government of British Columbia, 2025a)

  3. Designated Lands. This file is a downloadable zip file (GitHub File).