Title: | Map Layers and Spatial Utilities for British Columbia |
---|---|
Description: | Various layers of B.C., including administrative boundaries, natural resource management boundaries, census boundaries etc. All layers are available in BC Albers (<https://spatialreference.org/ref/epsg/3005/>) equal-area projection, which is the B.C. government standard. The layers are sourced from the British Columbia and Canadian government under open licenses, including B.C. Data Catalogue (<https://data.gov.bc.ca>), the Government of Canada Open Data Portal (<https://open.canada.ca/en/using-open-data>), and Statistics Canada (<https://www.statcan.gc.ca/en/reference/licence>). |
Authors: | Andy Teucher [aut, cre] |
Maintainer: | Andy Teucher <[email protected]> |
License: | Apache License (== 2.0) | file LICENSE |
Version: | 2.2.1.9000 |
Built: | 2025-02-19 02:43:57 UTC |
Source: | https://github.com/bcgov/bcmaps |
British Columbia Air Zones
airzones(ask = interactive(), force = FALSE)
airzones(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of airzones
as an sf
object.
bcdata::bcdc_get_data(record = 'e8eeefc4-2826-47bc-8430-85703d328516', resource = 'c495d082-b586-4df0-9e06-bd6b66a8acd9')
Other BC layers:
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- airzones() ## End(Not run)
## Not run: my_layer <- airzones() ## End(Not run)
A data.frame of all available layers in the bcmaps package. This drawn directly from the B.C. Data Catalogue and will therefore be the most current list layers available.
available_layers()
available_layers()
A data.frame
of layers, with titles, and a shortcut_function
column
denoting whether or not a shortcut function exists that can be used to return the
layer. If TRUE
, the name of the shortcut function is the same as the layer_name
.
A value of FALSE
in this column means the layer is available via get_data()
but
there is no shortcut function for it.
A value of FALSE
in the local
column means that the layer is not stored in the
bcmaps package but will be downloaded from the internet and cached
on your hard drive.
## Not run: available_layers() ## End(Not run)
## Not run: available_layers() ## End(Not run)
Total area, Land area only, or Freshwater area only, in the units of your choosing.
bc_area(what = "total", units = "km2")
bc_area(what = "total", units = "km2")
what |
Which part of BC? One of |
units |
One of |
The sizes are from Statistics Canada
The area of B.C. in the desired units (numeric vector).
## With no arguments, gives the total area in km^2: bc_area() ## Get the area of the land only, in hectares: bc_area("land", "ha")
## With no arguments, gives the total area in km^2: bc_area() ## Get the area of the land only, in hectares: bc_area("land", "ha")
Get an extent/bounding box for British Columbia
bc_bbox(class = c("sf", "raster"), crs = 3005)
bc_bbox(class = c("sf", "raster"), crs = 3005)
class |
|
crs |
coordinate reference system: integer with the EPSG code,
or character with proj4string. Default |
an object denoting a bounding box of British Columbia,
of the corresponding class specified in class
.
## Not run: bc_bbox("sf") bc_bbox("raster") ## End(Not run)
## Not run: bc_bbox("sf") bc_bbox("raster") ## End(Not run)
BC Boundary
bc_bound(ask = interactive(), force = FALSE)
bc_bound(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of bc_bound
as an sf
object
bcdata::bcdc_get_data('b9bd93e1-0226-4351-b943-05c6f80bd5da')
Other BC layers:
airzones()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- bc_bound() ## End(Not run)
## Not run: my_layer <- bc_bound() ## End(Not run)
BC Boundary - High Resolution
bc_bound_hres(ask = interactive(), force = FALSE)
bc_bound_hres(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of bc_bound_hres
as an sf
object
bcdc_get_data(record = '30aeb5c1-4285-46c8-b60b-15b1a6f4258b', resource = '3d72cf36-ab53-4a2a-9988-a883d7488384', layer = 'BC_Boundary_Terrestrial_Multipart')
Other BC layers:
airzones()
,
bc_bound()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- bc_bound_hres() ## End(Not run)
## Not run: my_layer <- bc_bound_hres() ## End(Not run)
BC Major Cities Points
bc_cities(ask = interactive(), force = FALSE)
bc_cities(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of bc_cities
as an sf
object.
bcdata::bcdc_get_data(record = 'b678c432-c5c1-4341-88db-0d6befa0c7f8', resource = '443dd858-2e37-4a8f-937a-f53359f16e64')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- bc_cities() ## End(Not run)
## Not run: my_layer <- bc_cities() ## End(Not run)
Boundary of British Columbia, provinces/states and the portion of the Pacific Ocean that borders British Columbia
bc_neighbours(ask = interactive(), force = FALSE)
bc_neighbours(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of bc_neighbours
as an sf
object
bcdata::bcdc_get_data('b9bd93e1-0226-4351-b943-05c6f80bd5da')
## Not run: my_layer <- bc_neighbours() ## End(Not run)
## Not run: my_layer <- bc_neighbours() ## End(Not run)
British Columbia BEC Map
bec(ask = interactive(), force = FALSE)
bec(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of bec
as an sf
object.
bcdata::bcdc_get_data(record = 'f358a53b-ffde-4830-a325-a5a03ff672c3', resource = '3ec24cb4-f78d-48a9-87e7-516763f00cc8')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- bec() ## End(Not run)
## Not run: my_layer <- bec() ## End(Not run)
Standard colours used to represent Biogeoclimatic Zone colours to be used in plotting.
bec_colours() bec_colors()
bec_colours() bec_colors()
named vector of hexadecimal colour codes. Names are standard abbreviations of Zone names.
## Not run: if (require(sf) && require(ggplot2)) { bec <- bec() ggplot() + geom_sf(data = bec[bec$ZONE %in% c("BG", "PP"),], aes(fill = ZONE, col = ZONE)) + scale_fill_manual(values = bec_colors()) + scale_colour_manual(values = bec_colours()) } ## End(Not run)
## Not run: if (require(sf) && require(ggplot2)) { bec <- bec() ggplot() + geom_sf(data = bec[bec$ZONE %in% c("BG", "PP"),], aes(fill = ZONE, col = ZONE)) + scale_fill_manual(values = bec_colors()) + scale_colour_manual(values = bec_colours()) } ## End(Not run)
Digital Elevation Model (DEM) for British Columbia produced by GeoBC. This data is the TRIM DEM converted to the Canadian Digital Elevation Data (CDED) format. The data consists of an ordered array of ground or reflective surface elevations, recorded in metres, at regularly spaced intervals. The spacing of the grid points is .75 arc seconds north/south. The data was converted into 1:50,000 grids for distribution. The scale of this modified data is 1:250,000 which was captured from the original source data which was at a scale of 1:20,000.
cded( aoi = NULL, tiles_50K = NULL, .predicate = sf::st_intersects, dest_vrt = tempfile(fileext = ".vrt"), ask = interactive(), check_tiles = TRUE )
cded( aoi = NULL, tiles_50K = NULL, .predicate = sf::st_intersects, dest_vrt = tempfile(fileext = ".vrt"), ask = interactive(), check_tiles = TRUE )
aoi |
Area of Interest. Currently supports sf and sp polygons, stars and raster objects. |
tiles_50K |
a character vector of 1:50,000 NTS mapsheet tiles |
.predicate |
geometry predicate function used to find the mapsheets from your aoi. Default sf::st_intersects. |
dest_vrt |
The location of the vrt file. Defaults to a temporary file, but can be overridden if you'd like to save it for a project |
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
check_tiles |
Should the tiles that you already have in your cache be checked to see if they need updating? Default |
path to a .vrt file of the cded tiles for the specified area of interest
## Not run: vic <- census_subdivision()[census_subdivision()$CENSUS_SUBDIVISION_NAME == "Victoria", ] vic_cded <- cded(aoi = vic) ## End(Not run)
## Not run: vic <- census_subdivision()[census_subdivision()$CENSUS_SUBDIVISION_NAME == "Victoria", ] vic_cded <- cded(aoi = vic) ## End(Not run)
stars
objectGet Canadian Digital Elevation Model (CDED) as a stars
object
cded_stars( aoi = NULL, tiles_50K = NULL, .predicate = sf::st_intersects, dest_vrt = tempfile(fileext = ".vrt"), ask = interactive(), check_tiles = TRUE, ... )
cded_stars( aoi = NULL, tiles_50K = NULL, .predicate = sf::st_intersects, dest_vrt = tempfile(fileext = ".vrt"), ask = interactive(), check_tiles = TRUE, ... )
aoi |
Area of Interest. Currently supports sf and sp polygons, stars and raster objects. |
tiles_50K |
a character vector of 1:50,000 NTS mapsheet tiles |
.predicate |
geometry predicate function used to find the mapsheets from your aoi. Default sf::st_intersects. |
dest_vrt |
The location of the vrt file. Defaults to a temporary file, but can be overridden if you'd like to save it for a project |
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
check_tiles |
Should the tiles that you already have in your cache be checked to see if they need updating? Default |
... |
Further arguments passed on to stars::read_stars |
a stars
object of the cded tiles for the specified area of interest
## Not run: vic <- census_subdivision()[census_subdivision()$CENSUS_SUBDIVISION_NAME == "Victoria", ] vic_cded <- cded_stars(aoi = vic) ## End(Not run)
## Not run: vic <- census_subdivision()[census_subdivision()$CENSUS_SUBDIVISION_NAME == "Victoria", ] vic_cded <- cded_stars(aoi = vic) ## End(Not run)
terra
objectGet Canadian Digital Elevation Model (CDED) as a terra
object
cded_terra( aoi = NULL, tiles_50K = NULL, .predicate = sf::st_intersects, dest_vrt = tempfile(fileext = ".vrt"), ask = interactive(), check_tiles = TRUE, ... )
cded_terra( aoi = NULL, tiles_50K = NULL, .predicate = sf::st_intersects, dest_vrt = tempfile(fileext = ".vrt"), ask = interactive(), check_tiles = TRUE, ... )
aoi |
Area of Interest. Currently supports sf and sp polygons, stars and raster objects. |
tiles_50K |
a character vector of 1:50,000 NTS mapsheet tiles |
.predicate |
geometry predicate function used to find the mapsheets from your aoi. Default sf::st_intersects. |
dest_vrt |
The location of the vrt file. Defaults to a temporary file, but can be overridden if you'd like to save it for a project |
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
check_tiles |
Should the tiles that you already have in your cache be checked to see if they need updating? Default |
... |
Further arguments passed on to |
a terra
object of the cded tiles for the specified area of interest
## Not run: vic <- census_subdivision()[census_subdivision()$CENSUS_SUBDIVISION_NAME == "Victoria", ] vic_cded <- cded_terra(aoi = vic) ## End(Not run)
## Not run: vic <- census_subdivision()[census_subdivision()$CENSUS_SUBDIVISION_NAME == "Victoria", ] vic_cded <- cded_terra(aoi = vic) ## End(Not run)
Current Census Dissemination Areas
census_dissemination_area(ask = interactive(), force = FALSE)
census_dissemination_area(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of census_dissemination_area
as an sf
object.
bcdata::bcdc_get_data(record = 'a091fd65-d682-4a24-8c0e-68de7c87e3a3', resource = 'a7fa66d4-0f95-4c58-861d-42d875e5b79f')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- census_dissemination_area() ## End(Not run)
## Not run: my_layer <- census_dissemination_area() ## End(Not run)
Current Census Division Boundaries
census_division(ask = interactive(), force = FALSE)
census_division(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of census_division
as an sf
object.
bcdata::bcdc_get_data(record = 'ef17918a-597a-4012-8534-f8e71d8735b3', resource = '36b530c2-1de6-44a2-a6f6-c1fce36c53ed')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- census_division() ## End(Not run)
## Not run: my_layer <- census_division() ## End(Not run)
Current Census Economic Region Boundaries
census_economic(ask = interactive(), force = FALSE)
census_economic(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of census_economic
as an sf
object.
bcdata::bcdc_get_data(record = '1aebc451-a41c-496f-8b18-6f414cde93b7', resource = '3f0236cf-b1a1-4f1a-8e9e-86c2c3daff96')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- census_economic() ## End(Not run)
## Not run: my_layer <- census_economic() ## End(Not run)
Current Census Metropolitan Areas
census_metropolitan_area(ask = interactive(), force = FALSE)
census_metropolitan_area(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of census_metropolitan_area
as an sf
object.
bcdata::bcdc_get_data(record = 'a6fb34b7-0937-4718-8f1f-43dba2c0f407', resource = 'f129a965-363e-4d7e-8319-a4010e002fdb')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- census_metropolitan_area() ## End(Not run)
## Not run: my_layer <- census_metropolitan_area() ## End(Not run)
Current Census Subdivision Boundaries
census_subdivision(ask = interactive(), force = FALSE)
census_subdivision(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of census_subdivision
as an sf
object.
bcdata::bcdc_get_data(record = '4c5618c6-38dd-4a62-a3de-9408b4974bb6', resource = '98bd1222-57bb-4504-92c2-4a5857ae7671')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- census_subdivision() ## End(Not run)
## Not run: my_layer <- census_subdivision() ## End(Not run)
Current Census Tract Boundaries
census_tract(ask = interactive(), force = FALSE)
census_tract(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of census_tract
as an sf
object.
bcdata::bcdc_get_data(record = '539aae5b-12f6-4934-9592-9b27acc827f8', resource = 'be767db6-0d4e-4906-a89b-564637f14db9')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- census_tract() ## End(Not run)
## Not run: my_layer <- census_tract() ## End(Not run)
Combine Northern Rockies Regional Municipality with Regional Districts
combine_nr_rd()
combine_nr_rd()
A layer where the Northern Rockies Regional Municipality has been combined with the Regional Districts to form a full provincial coverage.
View and delete cached files
Show the files you have in your cache
delete_cache(files_to_delete = NULL) show_cached_files()
delete_cache(files_to_delete = NULL) show_cached_files()
files_to_delete |
An optional argument to specify which files or layers should be deleted from the cache. Defaults to deleting all files pausing for permission from user. If a subset of files are specified, the files are immediately deleted. |
delete_cache()
: A logical of whether the file(s) were successful deleted
show_cached_files()
: a data.frame with the columns:
file
, the name of the file,
size_MB
, file size in MB,
is_dir
, is it a directory? If you have cached tiles from the cded()
functions,
there will be a row in the data frame showing the total size
of the cded tiles cache directory.
modified
, date and time last modified
## Not run: ## See which files you have show_cached_files() ## Delete your whole cache delete_cache() ## Specify which files are deleted delete_cache(c('regional_districts.rds', 'bc_cities.rds')) ## End(Not run)
## Not run: ## See which files you have show_cached_files() ## Delete your whole cache delete_cache() ## Specify which files are deleted delete_cache(c('regional_districts.rds', 'bc_cities.rds')) ## End(Not run)
British Columbia Ecoprovinces
ecoprovinces(ask = interactive(), force = FALSE)
ecoprovinces(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of ecoprovinces
as an sf
object.
bcdata::bcdc_get_data(record = '51832f47-efdf-4956-837a-45fc2c9032dd', resource = '811fcedb-1a53-4574-8149-454f4a740682')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- ecoprovinces() ## End(Not run)
## Not run: my_layer <- ecoprovinces() ## End(Not run)
British Columbia Ecoregions
ecoregions(ask = interactive(), force = FALSE)
ecoregions(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of ecoregions
as an sf
object.
bcdata::bcdc_get_data(record = 'd00389e0-66da-4895-bd56-39a0dd64aa78', resource = 'bd816a86-4f5e-4989-b1df-0b2f3f4a5f86')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- ecoregions() ## End(Not run)
## Not run: my_layer <- ecoregions() ## End(Not run)
British Columbia Ecosections
ecosections(ask = interactive(), force = FALSE)
ecosections(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of ecosections
as an sf
object.
bcdata::bcdc_get_data(record = 'ccc01f43-860d-4583-8ba4-e72d8379441e', resource = '6b6a3122-7a0b-4c0f-a72b-1e5c0e13d7e6')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- ecosections() ## End(Not run)
## Not run: my_layer <- ecosections() ## End(Not run)
British Columbia Forward Sortation Areas
fsa(ask = interactive(), force = FALSE)
fsa(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
http://www12.statcan.gc.ca/census-recensement/2011/geo/bound-limit/files-fichiers/2016/lfsa000b16a_e.zip
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- fsa() ## End(Not run)
## Not run: my_layer <- fsa() ## End(Not run)
Get a B.C. spatial layer
get_layer(layer, ask = interactive(), force = FALSE)
get_layer(layer, ask = interactive(), force = FALSE)
layer |
the name of the layer. The list of available layers can be
obtained by running |
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
the layer requested
## Not run: get_layer("bc_bound_hres") ## End(Not run)
## Not run: get_layer("bc_bound_hres") ## End(Not run)
British Columbia's developed ground water aquifers
gw_aquifers(ask = interactive(), force = FALSE)
gw_aquifers(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of gw_aquifers
as an sf
object.
bcdata::bcdc_get_data(record = '099d69c5-1401-484d-9e19-c121ccb7977c', resource = '8f421e3a-ccd3-4fab-8198-53ad6e9e2af2')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- gw_aquifers() ## End(Not run)
## Not run: my_layer <- gw_aquifers() ## End(Not run)
Community Health Service Areas - CHSA
health_chsa(ask = interactive(), force = FALSE)
health_chsa(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of health_chsa
as an sf
object.
bcdata::bcdc_get_data(record = '68f2f577-28a7-46b4-bca9-7e9770f2f357', resource = '59065b51-511a-4976-b77f-034168365273')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- health_chsa() ## End(Not run)
## Not run: my_layer <- health_chsa() ## End(Not run)
Health Authority Boundaries
health_ha(ask = interactive(), force = FALSE)
health_ha(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of health_ha
as an sf
object.
bcdata::bcdc_get_data(record = '7bc6018f-bb4f-4e5d-845e-c529e3d1ac3b', resource = '93b79a3c-2da4-4fd4-b953-2f5c690db430')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- health_ha() ## End(Not run)
## Not run: my_layer <- health_ha() ## End(Not run)
Health Service Delivery Area Boundaries
health_hsda(ask = interactive(), force = FALSE)
health_hsda(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of health_hsda
as an sf
object.
bcdata::bcdc_get_data(record = '71c930b9-563a-46da-a10f-ead49ccbc390', resource = 'c5dad467-229b-4378-852b-ff92479a65b6')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- health_hsda() ## End(Not run)
## Not run: my_layer <- health_hsda() ## End(Not run)
Local Health Area Boundaries
health_lha(ask = interactive(), force = FALSE)
health_lha(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of health_lha
as an sf
object.
bcdata::bcdc_get_data(record = 'afd021d9-7722-4410-b506-d394c66e74fc', resource = 'd6e951d3-5103-475a-8bb6-b4d275e6343f')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- health_lha() ## End(Not run)
## Not run: my_layer <- health_lha() ## End(Not run)
Hydrologic Zone Boundaries of British Columbia
hydrozones(ask = interactive(), force = FALSE)
hydrozones(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of hydrozones
as an sf
object.
bcdata::bcdc_get_data(record = '329fd234-8835-4d44-9aaa-97c37bfc8d92', resource = 'baeb665e-85c7-4a7b-8e67-8b956785490a')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- hydrozones() ## End(Not run)
## Not run: my_layer <- hydrozones() ## End(Not run)
NTS 250K Grid - Digital Baseline Mapping at 1:250,000 (NTS)
mapsheets_250K()
mapsheets_250K()
The spatial layer of mapsheets_250K
as an sf
object.
https://open.canada.ca/data/en/dataset/055919c2-101e-4329-bfd7-1d0c333c0e62
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- mapsheets_250K() ## End(Not run)
## Not run: my_layer <- mapsheets_250K() ## End(Not run)
NTS 50K Grid - Digital Baseline Mapping at 1:50,000 (NTS)
mapsheets_50K()
mapsheets_50K()
The spatial layer of mapsheets_50K
as an sf
object.
https://open.canada.ca/data/en/dataset/055919c2-101e-4329-bfd7-1d0c333c0e62
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- mapsheets_50K() ## End(Not run)
## Not run: my_layer <- mapsheets_50K() ## End(Not run)
British Columbia Municipalities
municipalities(ask = interactive(), force = FALSE)
municipalities(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of municipalities
as an sf
object.
bcdata::bcdc_get_data(record = 'e3c3c580-996a-4668-8bc5-6aa7c7dc4932', resource = '25c95b07-5882-47ff-970d-36cb243b8355')
combine_nr_rd()
to combine Regional Districts and the Northern Rockies Regional Municipality into one layer
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- municipalities() ## End(Not run)
## Not run: my_layer <- municipalities() ## End(Not run)
British Columbia Natural Resource (NR) Areas
nr_areas(ask = interactive(), force = FALSE)
nr_areas(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of nr_areas
as an sf
object.
bcdata::bcdc_get_data(record = 'c1861ba4-abb8-4947-b3e5-7f7c4d7257d5', resource = '4b317896-1a42-4c03-9dbd-bff996d5ea0c')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- nr_areas() ## End(Not run)
## Not run: my_layer <- nr_areas() ## End(Not run)
British Columbia Natural Resource (NR) Districts
nr_districts(ask = interactive(), force = FALSE)
nr_districts(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of nr_districts
as an sf
object.
bcdata::bcdc_get_data(record = '0bc73892-e41f-41d0-8d8e-828c16139337', resource = 'e6676e55-2a6f-4b2b-91ad-3caf291ac5d4')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- nr_districts() ## End(Not run)
## Not run: my_layer <- nr_districts() ## End(Not run)
British Columbia Natural Resource (NR) Regions
nr_regions(ask = interactive(), force = FALSE)
nr_regions(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of nr_regions
as an sf
object.
bcdata::bcdc_get_data(record = 'dfc492c0-69c5-4c20-a6de-2c9bc999301f', resource = 'ec636f64-9c5f-4704-8e66-2dd43032c9b5')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- nr_regions() ## End(Not run)
## Not run: my_layer <- nr_regions() ## End(Not run)
Overlay a SpatialPolygonsDataFrame or sf polygons layer on a raster layer and clip the raster to each polygon. Optionally done in parallel
raster_by_poly( raster_layer, poly, poly_field, summarize = FALSE, parallel = FALSE )
raster_by_poly( raster_layer, poly, poly_field, summarize = FALSE, parallel = FALSE )
raster_layer |
the raster layer |
poly |
a |
poly_field |
the field on which to split the |
summarize |
Should the function summarise the raster values in each
polygon to a vector? Default |
parallel |
process in parallel? Default |
a list of RasterLayers
if summarize = FALSE
otherwise a list of
vectors.
British Columbia Regional Districts
regional_districts(ask = interactive(), force = FALSE)
regional_districts(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of regional_districts
as an sf
object.
bcdata::bcdc_get_data(record = 'd1aff64e-dbfe-45a6-af97-582b7f6418b9', resource = '57c7f719-dc87-415c-8be7-ef2f95289397')
combine_nr_rd()
to combine Regional Districts and the Northern Rockies Regional Municipality into one layer
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- regional_districts() ## End(Not run)
## Not run: my_layer <- regional_districts() ## End(Not run)
Summarize a list of rasters into a list of numeric vectors
summarize_raster_list(raster_list, parallel = FALSE)
summarize_raster_list(raster_list, parallel = FALSE)
raster_list |
list of rasters |
parallel |
process in parallel? Default |
a list of numeric vectors
The Spatial
method has been removed as of bcmaps 2.0.0. The sf
method is here to stay.
transform_bc_albers(obj)
transform_bc_albers(obj)
obj |
The sf object to transform. |
the sf object in BC Albers projection
British Columbia Timber Supply Areas and TSA Blocks
tsa(ask = interactive(), force = FALSE)
tsa(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of tsa
as an sf
object.
bcdata::bcdc_get_data(record = '8daa29da-d7f4-401c-83ae-d962e3a28980', resource = '6851f8a6-77b9-4555-9f60-3d2bd8e039be')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- tsa() ## End(Not run)
## Not run: my_layer <- tsa() ## End(Not run)
This can operate on a data frame containing coordinates from multiple UTM zones with a column denoting the zone, or a single zone for the full dataset.
utm_convert( x, easting, northing, zone, crs = "EPSG:3005", datum = c("NAD83", "WGS84"), xycols = TRUE )
utm_convert( x, easting, northing, zone, crs = "EPSG:3005", datum = c("NAD83", "WGS84"), xycols = TRUE )
x |
data.frame containing UTM coordinates, with a zone column |
easting |
the name of the 'easting' column |
northing |
the name of the 'northing' column |
zone |
the name of the 'zone' column, or a single value if the data are all in one UTM zone |
crs |
target CRS. Default BC Albers (EPSG:3005) |
datum |
The datum of the source data. |
xycols |
should the X and Y columns be appended to the output? |
It supports data collected in either the NAD83 or WGS84 ellipsoid in the Northern hemisphere
sf object in the chosen CRS
# Data with multiple zones, and a column denoting the zone df <- data.frame( animalid = c("a", "b", "c"), zone = c(10, 11, 11), easting = c(500000, 800000, 700000), northing = c(5000000, 3000000, 1000000) ) utm_convert(df, easting = "easting", northing = "northing", zone = "zone") # Data all in one zone, specify a single zone: df <- data.frame( animalid = c("a", "b"), easting = c(500000, 800000), northing = c(5000000, 3000000) ) utm_convert(df, easting = "easting", northing = "northing", zone = 11)
# Data with multiple zones, and a column denoting the zone df <- data.frame( animalid = c("a", "b", "c"), zone = c(10, 11, 11), easting = c(500000, 800000, 700000), northing = c(5000000, 3000000, 1000000) ) utm_convert(df, easting = "easting", northing = "northing", zone = "zone") # Data all in one zone, specify a single zone: df <- data.frame( animalid = c("a", "b"), easting = c(500000, 800000), northing = c(5000000, 3000000) ) utm_convert(df, easting = "easting", northing = "northing", zone = 11)
List the files that a vrt is built on
vrt_files(vrt, omit_vrt = FALSE)
vrt_files(vrt, omit_vrt = FALSE)
vrt |
path to a .vrt file |
omit_vrt |
omit the listing of the original vrt. Default |
character vector of tiles
Get metadata about a .vrt file
vrt_info(vrt, options = character(0), quiet = FALSE)
vrt_info(vrt, options = character(0), quiet = FALSE)
vrt |
path to a .vrt file |
options |
options to pass to |
quiet |
suppress output to the console (default
|
character of vrt metadata
British Columbia's Water Management Districts
water_districts(ask = interactive(), force = FALSE)
water_districts(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of water_districts
as an sf
object.
bcdata::bcdc_get_data(record = '92cb3ad8-9582-48a9-9e79-9a9d33601e50', resource = '07f9aa3f-0b66-4a49-919f-332d12bcd8f0')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- water_districts() ## End(Not run)
## Not run: my_layer <- water_districts() ## End(Not run)
British Columbia's Water Management Precincts
water_precincts(ask = interactive(), force = FALSE)
water_precincts(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of water_precincts
as an sf
object.
bcdata::bcdc_get_data(record = 'b5f436b4-532c-4ee2-ba27-90d55ec8c73f', resource = 'e482fd4a-be58-4541-8e0d-c39a764fd0a3')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
watercourses_15M()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- water_precincts() ## End(Not run)
## Not run: my_layer <- water_precincts() ## End(Not run)
British Columbia watercourses at 1:15M scale
watercourses_15M(ask = interactive(), force = FALSE)
watercourses_15M(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of watercourses_15M
as an sf
object.
https://ftp.maps.canada.ca/pub/nrcan_rncan/vector/canvec/fgdb/Hydro/canvec_15M_CA_Hydro_fgdb.zip
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_5M()
,
wsc_drainages()
## Not run: my_layer <- watercourses_15M() ## End(Not run)
## Not run: my_layer <- watercourses_15M() ## End(Not run)
British Columbia watercourses at 1:5M scale
watercourses_5M(ask = interactive(), force = FALSE)
watercourses_5M(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of watercourses_5M
as an sf
object.
https://ftp.maps.canada.ca/pub/nrcan_rncan/vector/canvec/fgdb/Hydro/canvec_5M_CA_Hydro_fgdb.zip
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
wsc_drainages()
## Not run: my_layer <- watercourses_5M() ## End(Not run)
## Not run: my_layer <- watercourses_5M() ## End(Not run)
Water Survey of Canada Sub-Sub-Drainage Areas
wsc_drainages(ask = interactive(), force = FALSE)
wsc_drainages(ask = interactive(), force = FALSE)
ask |
Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive(). |
force |
Should you force download the data? |
The spatial layer of wsc_drainages
as an sf
object.
bcdata::bcdc_get_data(record = '7ae18a3c-917b-4cb1-9aa8-51a172475dbb', resource = '4455072e-d33b-4685-9edd-cffda763dd45')
Other BC layers:
airzones()
,
bc_bound()
,
bc_bound_hres()
,
bc_cities()
,
bec()
,
census_dissemination_area()
,
census_division()
,
census_economic()
,
census_metropolitan_area()
,
census_subdivision()
,
census_tract()
,
ecoprovinces()
,
ecoregions()
,
ecosections()
,
fsa()
,
gw_aquifers()
,
health_chsa()
,
health_ha()
,
health_hsda()
,
health_lha()
,
hydrozones()
,
mapsheets_250K()
,
mapsheets_50K()
,
municipalities()
,
nr_areas()
,
nr_districts()
,
nr_regions()
,
regional_districts()
,
tsa()
,
water_districts()
,
water_precincts()
,
watercourses_15M()
,
watercourses_5M()
## Not run: my_layer <- wsc_drainages() ## End(Not run)
## Not run: my_layer <- wsc_drainages() ## End(Not run)