canvec.url: Get CanVec or CanVec+ data URL

Description Usage Arguments Value

View source: R/canvec.R

Description

Get CanVec or CanVec+ data URL based on the NTS Reference (as generated by nts()) provided. The URL generated may or may not exist depending whether or not the sheet or area is available. CanVec data is available by mapsheet (e.g. 021H01; 1:50k), CanVec+ data is available by map area (e.g. 021H; 1:250k). If a the ntsid provided is a 1:50k reference, a CanVec URL will be generated. Otherwise, a CanVec+ url is generated.

Usage

1
2
canvec.url(ntsid,
  server = "http://ftp.geogratis.gc.ca/pub/nrcan_rncan/vector/")

Arguments

ntsid

A single NTS Reference as generated by nts().

server

The server to download from (default: http://ftp.geogratis.gc.ca/pub/nrcan_rncan/vector/)

Value

A URL where the given data can be found.


paleolimbot/rcanvec documentation built on May 24, 2019, 6:13 p.m.