R语言geoviz包,mapbox_dem#从“mapbox”获取数字高程模型(DEM)数据
# Tue Mar 16 13:39:14 2021 -
# 字符编码:UTF-8
# R 版本:R x64 4.0.4 for window 10
# cgh163email@163.com
# 个人笔记不负责任,拎了个梨🍐
.rs.restartR()
require(geoviz)
rm(list = ls());gc()
?mapbox_dem#从“mapbox”获取数字高程模型(DEM)数据
lat = 54.4502651
long = -3.1767946
square_km = 20
dem <- mapbox_dem(lat, long, square_km, api_key = my_mapbox_key)
require(terra)
plot(dem)
# Tue Mar 16 13:41:05 2021 --end