【发布时间】:2020-05-20 19:32:50
【问题描述】:
尽管有很多 CRS 预测等帖子,但我无法阻止我的城镇下沉。
如果我转到Google Maps 并输入-35.016, 117.878,奥尔巴尼镇就在陆地上(如下图所示):
如果我在 R 中输入 lat/long 并尝试使用简单的功能包和 ggmap 进行地图绘制,那么小镇就在海洋中:
library(tidyverse)
library(sf)
library(lwgeom)
library(ggmap)
lat <- c(-35.016)
lon <- c(117.878)
df <- tibble(lon,lat) %>% st_as_sf( coords = c("lon", "lat"), crs = 4326)
bbox_aus <- c(left = 113.338953078, bottom = -43.6345972634, right = 153.569469029, top = -10.6681857235)
ggmap_aus <- ggmap(get_stamenmap(bbox_aus, zoom = 5, maptype = "toner-background"))
ggmap_aus +
geom_sf(data = df, colour = "red" , size = 3, alpha = 0.5, inherit.aes = FALSE) +
# coord_sf(datum = sf::st_crs(4326)) +
labs(title = "Albany Sinking",
x = NULL,
y = NULL) +
theme_bw()
【问题讨论】: