You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

网络节点地理编码失败求助:revgeo/tidygeocoder无返回结果

地理逆编码无结果问题

我尝试对铁路网络节点做地理配准,首先用以下代码提取节点:

nodes_index <- rails_network %>%  activate(nodes) %>% as_tibble() %>% st_as_sf() %>% mutate(long = st_coordinates(.)[,1],
                                                                                             lat = st_coordinates(.)[,2])   %>%
  st_drop_geometry()

提取后的数据框前10行结构如下:

str(dput(nodes_index[1:10,1:3]))
structure(list(ID = 1:10, long = c(1233616.92623604, 1223433.99025042, 
1378366.25773239, 1401157.10267164, 1479266.77880306, 1528588.72290147, 
1509447.42453216, 1499351.98566691, 1454285.44484453, 756209.126081893
), lat = c(6350711.55217875, 6355001.32493512, 6682635.84497815, 
6684119.9464045, 6676208.51447798, 6628470.59620128, 6654633.46946046, 
6891626.20630991, 6871266.57873021, 6660285.54473999)), row.names = c(NA, 
-10L), class = c("tbl_df", "tbl", "data.frame"))
tibble [10 × 3] (S3: tbl_df/tbl/data.frame)
 $ ID  : int [1:10] 1 2 3 4 5 6 7 8 9 10
 $ long: num [1:10] 1233617 1223434 1378366 1401157 1479267 ...
 $ lat : num [1:10] 6350712 6355001 6682636 6684120 6676209 ...

随后我用revgeo(也试过tidygeocoder)执行逆地理编码:

library(revgeo)
nodes_index1 <-    revgeo(latitude =  nodes_index$lat, longitude =  nodes_index$long, output = "frame")

但这两个工具都无法返回任何结果,不过通过mapview确认所有节点的空间位置是正确的。

内容的提问来源于stack exchange,提问作者Sulz

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.20 08:03:10