.a; node["amenity"="coworking_space-6ren">
gpt4 book ai didi

openstreetmap - osm立交桥按国家查询

转载 作者:行者123 更新时间:2023-12-04 03:13:52 24 4
gpt4 key购买 nike

我正在使用此立交桥查询来提取意大利的所有联合办公设施。

( area["ISO3166-1"="IT"];) ->.a;
node["amenity"="coworking_space"]
(area.a);
(._;>;);
out body;

如果我尝试使用 FR 作为 ISO3166 国家代码对法国做同样的事情

( area["ISO3166-1"="FR"];) ->.a;
node["amenity"="coworking_space"]
(area.a);
(._;>;);
out body;

我没有得到任何结果,但我确定在法国有类似的节点(我使用自动 bbox 通过单独的查询进行了测试)。

问题:

  • 我是不是弄错了法国的 ISO3166 国家代码?
  • 一般来说,有没有更好的方法可以按国家/地区从立交桥提取 osm 数据?

谢谢,

雅各布

最佳答案

您应该查询 key ISO3166-1:alpha2ISO3166-1:alpha3 并仅将 ISO3166-1 用作后备.这些键在 country code 中有解释。维基页面。

relation for the state of Italy有标签 ISO3166-1relation for the state of France没有。但两者都具有您在 ISO3166-1:alpha2 键中寻找的值。

关于openstreetmap - osm立交桥按国家查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42832571/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com