简体   繁体   English

天桥涡轮增压:查询返回空集

[英]overpass turbo: query returns empty set

I'm using this statement on https://overpass-turbo.eu/ : 我在https://overpass-turbo.eu/上使用此语句:

[timeout:900];
area[name="Germany"][admin_level=2][boundary=administrative]->.myarea;
rel(area.myarea)[admin_level=4][boundary=administrative];
out geom;

Why is this returning an empty dataset? 为什么返回一个空数据集? First I select the area of germany, then I select all relations which represent the state boundaries. 首先,我选择德国的地区,然后选择代表国家边界的所有关系。 Like this one: http://www.openstreetmap.org/relation/62761#map=8/51.440/7.660 像这样的一个: http : //www.openstreetmap.org/relation/62761#map=8/51.440/7.660

What am I missing? 我想念什么?

As the country name is tagged as "Deutschland" rather than "Germany", you need to adjust the .myarea part of your query: 由于国家名称被标记为“德国”而不是“德国”,因此您需要调整查询的.myarea部分:

[timeout:900];
area[name="Deutschland"][admin_level=2][boundary=administrative]->.myarea;
rel(area.myarea)[admin_level=4][boundary=administrative];
out geom;

In any case, I would recommend the following faster approach based on tagging schema: 无论如何,我都会建议以下基于标记架构的更快方法:

rel[boundary=administrative]["ISO3166-2"~"^DE-"][admin_level=4];
out geom;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2025 STACKOOM.COM