【问题标题】:How to find nodes within ways in Overpass QL?如何在 Overpass QL 中查找路径内的节点?
【发布时间】:2018-12-21 04:25:09
【问题描述】:

我有一个查询返回多个ways。我想找到与这些方式中出现的某些条件匹配的nodes。请注意,我感兴趣的节点 构成路本身的一部分,但确实出现在路的范围内。此外,并非所有路都有对应的区域,因此使用区域搜索并非在所有情况下都有效。

我有一个找到 95677318 路的最小示例,我希望能够找到节点 1552949334:

(
  way({{bbox}})["man_made"="lighthouse"];
)->.searchArea;

/*doesn't work:*/
/*node(area.searchArea)["seamark:name"];*/

/*recur down and find node directly, just for the purpose of this question*/
(
  .searchArea;>;
  node({{bbox}})["seamark:name"];
);
out;

(试试https://overpass-turbo.eu/s/EpV

【问题讨论】:

标签: openstreetmap overpass-api


【解决方案1】:

此功能在 0.7.55 版中尚不可用。如果Overpass服务器上没有对应的area可用,这种查询根本不可行。

详情请见https://github.com/drolbr/Overpass-API/issues/77

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-06
    相关资源
    最近更新 更多