getGeoJson: GeoJson map generator

Description Usage Arguments Value Author(s) References See Also Examples

Description

Generates geojson country map using sp files from http://gadm.org/

Usage

1
2
 getGeoJson(country, iso = FALSE, lvl = 0, saveRaw = FALSE,
saveJson = TRUE, folder = "./") 

Arguments

country

Country name, or its iso 3 abbreviation

iso

Flag to accept ISO 3166-1 alpha-3 code if TRUE. Defauls value is FALSE.

lvl

Map detalisation level, varies from the country border (lvl = 0) to country regions/provinces borders. Highest available lvl cab be found in iso3 dataset.

saveRaw

Should the downloaded sp file be saved? Defauls value is FALSE.

saveJson

Should the generated geojson file be saved? Defauls value is TRUE.

folder

Folder to save files.

Value

json

Generated geojson map.

bbox

Bounding box of the map, contains the min and man values of the longitude and latitude coordinates.

Author(s)

D.Kisler

References

The map data are from http://gadm.org/

See Also

geojson_json countryISO iso3

Examples

1
2
3
 #geojson map of Germany
 map <- getGeoJson("DEU", iso = TRUE, saveJson = FALSE)
 map <- getGeoJson("Germany", saveJson = FALSE)

kislerdm/gadMaps documentation built on May 20, 2019, 10:24 a.m.