Skip to content

Instantly share code, notes, and snippets.

@mikemahoney218
Created November 16, 2020 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikemahoney218/f2ee5a9e626202e1c4805a976b82d819 to your computer and use it in GitHub Desktop.
Save mikemahoney218/f2ee5a9e626202e1c4805a976b82d819 to your computer and use it in GitHub Desktop.
Code to create a map for day 19 of the 30 Day Map Challenge: NULL
library(terrainr)
library(magrittr)
downloaded_tiles <- get_bbox(lat = 44.050604, lng = -74.051024) %>%
set_bbox_side_length(8000) %>%
get_tiles(services = c("elevation", "ortho"))
merged_tiles <- lapply(downloaded_tiles, merge_rasters)
raster_to_raw_tiles(merged_tiles[[1]][[1]], "tahawus")
raster_to_raw_tiles(merged_tiles[[2]][[1]], "tahawus", raw = FALSE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment