如何为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
相关产品推荐
相关产品推荐

