Displaying 2 results from an estimated 2 matches for "_adm".
Did you mean:
_add
2013 Nov 27
0
GADM Data Download
...end of the email.
I often download some maps (in the R format) from
http://www.gadm.org/
However, when I run (typically more than once) a variation of the script
below (based on http://bit.ly/1b3W0Aa ),
I often get
Error in load(url(paste("http://gadm.org/data/rda/", fileName, "_adm", :
cannot open the connection
In addition: Warning message:
In load(url(paste("http://gadm.org/data/rda/", fileName, "_adm", :
cannot open: HTTP status was '504 Gateway Time-out'
Does anybody know if gadm blocks repeated attempts to retrieve the same
da...
2012 Aug 13
1
Fine Tuning Country Map
...st have to specify the countries "special
part" of the file name, like "ARG" for Argentina. Optionally you can
specify which level you want to have
loadGADM <- function (fileName, level = 0, ...) {
load(url(paste("http://gadm.org/data/rda/", fileName, "_adm", level,
".RData", sep = "")))
gadm
}
## the maps objects get a prefix (like "ARG_" for Argentina)
changeGADMPrefix <- function (GADM, prefix) {
GADM <- spChFIDs(GADM, paste(prefix, row.names(GADM), sep = "_"))
GADM
}
## load...