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

如何在单个Overpass QL查询中获取多Bounding Boxes内的所有节点?

如何在单个Overpass查询中使用多个Bounding Boxes

完全可以实现,最直接的方式是用合并查询的写法,把多个Bounding Box的查询语句包裹在括号内,用分号分隔,最后统一输出。

示例代码如下:

(
  nwr(51.477,-0.001,51.478,0.001);
  nwr(52.516,13.377,52.517,13.378);
  // 可继续添加更多Bounding Box查询
  nwr(48.856,2.352,48.857,2.353);
);
out;

原理说明

括号内的每一行nwr(...)都是独立的Bounding Box查询,Overpass会自动将这些查询的结果合并成一个数据集,最后通过out;统一输出所有结果。这种写法支持任意数量的Bounding Box,只要符合Overpass语法规范即可。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.04 14:45:24