canvec.load: Load CanVec Data

Description Usage Arguments Value Examples

View source: R/canvec.R

Description

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

Usage

1
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

1
buildings <- canvec.load(nts("21h1"), "building")

rcanvec documentation built on May 2, 2019, 9:28 a.m.