get_layer {bcmaps}R Documentation

Get a B.C. spatial layer

Description

Get a B.C. spatial layer

Usage

get_layer(layer, class = c("sf", "sp"), ask = TRUE, force = FALSE, ...)

Arguments

layer

the name of the layer. The list of available layers can be obtained by running available_layers()

class

what class you want the object in? "sf" (default) or "sp".

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?

...

arguments passed on to get_big_data if the layer needs to be downloaded from a bcmapsdata release.

Value

the layer requested

Examples

## Not run: 
 get_layer("bc_bound_hres")

 # As a "Spatial" (sp) object
 get_layer("watercourses_15M")

## End(Not run)

[Package bcmaps version 1.0.2 Index]