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

如何为osmextract的oe_get()编写特定查询以获取OSM数据?

问题:使用osmextract编写特定查询获取OpenStreetMap数据

此前使用osmdata拉取OpenStreetMap数据时,遇到查询规模过大、部分数据集缺失的问题,原代码如下:

bbuk <- getbb("Great Britain")
x <- bbuk %>%
  opq(timeout = 25*1000)%>%
  add_osm_feature("plant:source","wind") %>%
  osmdata_sf()
y <- bbuk %>%
  opq(timeout = 25*100)%>%
  add_osm_feature("power","line") %>%
  osmdata_sf()

考虑到osmextract是更优替代方案,但不清楚如何为oe_get()编写特定查询,尝试的代码如下:

library(osmextract)
place_name = "Great Britain"
et = c("amenity")
q_points = "SELECT * FROM multipolygon WHERE power IN ('wind')"
oe_school_points = oe_get(place_name, query = q_points, extra_tags = et)

请问有哪些可参考的来源,能帮助编写oe_get()的查询以获取所需的特定数据?

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.24 07:07:03