dnldCtryPoly: Download a country's polygon shapefile from <URL:...

Description Usage Arguments Value Examples

View source: R/polygons.R

Description

Download a country's polygon shapefile from http://gadm.org

Usage

1
2
3
dnldCtryPoly(ctryCode = NULL, gadmVersion = pkgOptions("gadmVersion"),
  gadmPolyType = pkgOptions("gadmPolyType"), custPolyPath = NULL,
  downloadMethod = pkgOptions("downloadMethod"))

Arguments

ctryCode

The ISO3 ctryCode of the country polygon to download

gadmVersion

The GADM version to use

gadmPolyType

The format of polygons to download from GADM

custPolyPath

Alternative to GADM. A path to a custom shapefile zip

downloadMethod

The method used to download polygons

Value

TRUE/FALSE Success/Failure of the download

Examples

1
2
3
4
## Not run: 
Rnightlights:::dnldCtryPoly("KEN")

## End(Not run)

Rnightlights documentation built on Aug. 29, 2019, 5:02 p.m.