Skip to content

Instantly share code, notes, and snippets.

@harryprince
Created April 11, 2019 22:36
Show Gist options
  • Save harryprince/0e012720c9073c57b1ce2ff1996c391c to your computer and use it in GitHub Desktop.
Save harryprince/0e012720c9073c57b1ce2ff1996c391c to your computer and use it in GitHub Desktop.
Remote Sensing in R: extent viz
ext <- extent(c(xmin=116.45902633667,xmax=116.477222442627,ymin=39.940881729126,ymax=39.9528980255127))
ext %>%
sf::st_bbox() %>%
sf::st_as_sfc() %>%
sf::st_set_crs(4326) %>%
sf::st_transform(3857) %>%
sf::st_bbox() %>%
mapview::mapview()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment