shape_fetch: Get shapefiles from Natural Earth.

Description Usage Arguments

View source: R/shape_fetch.R

Description

Import shapefiles from http://www.naturalearthdata.com and extract the contents in preperation for converting the shapefile to GeoJSON using geojson_convert.

Usage

1
2
shape_fetch(ne.type = "physical", ne.filename = "ne_110m_land",
  ne.scale = "110m", dest = "./data/natural-earth")

Arguments

ne.type

Set the type of map (see http://www.naturalearthdata.com/downloads/ for details). Supports: 'physical' and 'cultural' (default value is 'physical').

ne.filename

Set the map layer (see http://www.naturalearthdata.com/downloads/ for details). Default value is 'ne_110m_land'.

ne.scale

Set the map scale (see http://www.naturalearthdata.com/downloads/ for details). Supports: '10m' (1:10m), '50m' (1:50m), and '110m' (1:110m) (default value is '110m'). Please note that '10m' file size is large.

dest

Set the path of the destination folder the downloaded zip file will be extracted into (default path is './data/natural-earth').


kamermanpr/geojsonBASIC documentation built on May 18, 2017, 9:33 p.m.