Learn R Programming

rcanvec (version 0.2.1)

canvec.load: Load CanVec Data

Description

Load layerid for NTS reference(s) that were previously downloaded to cachedir.

Usage

canvec.load(ntsid, layerid, cachedir = NULL)

Arguments

ntsid
One or more NTS References as generated by nts()
layerid
A single layer id as listed in canvec_layers$id
cachedir
Pass a specific cache directory in which files have been extracted. Default value is that returned by canvec.cachedir()

Value

A sp::Spatial* object loaded from the given shapefile or a list of Spatial* objects if more than one directory is specified.

Examples

Run this code
buildings <- canvec.load(nts("21h1"), "building")

Run the code above in your browser using DataLab