powered by
Get a B.C. spatial layer
get_layer(layer, class = c("sf", "sp"), ...)
the name of the layer. The list of available layers can be obtained by running available_layers()
available_layers()
The class of the layer returned. Can be either "sf" (default) or "sp"
"sf"
"sp"
arguments passed on to get_big_data if the layer needs to be downloaded. Ignored if the layer is available locally in bcmapsdata.
bcmapsdata
the layer requested
# NOT RUN { get_layer("bc_bound_hres") # As a "Spatial" (sp) object get_layer("watercourses_15M") # }
Run the code above in your browser using DataLab