#' Generate a valid UTM WGS84 proj4string given a UTM zone
#'
#' @param x character vector defining UTM zones
#'
#' @return UTM proj4string character vector
#'
#' @export
#'
UTMProj4 <- function(x){
unlist(lapply(1:length(x), function(y) {
paste0(
"+proj=utm +zone=",
gsub("[A-z]", "", as.character(x[y])),
ifelse(gsub("[0-9]", "", as.character(x[y])) == "S", " +south", ""),
" +ellps=WGS84")
}))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.