
[英]How can I get all OSM ways and nodes tagged amenity, plus way nodes using the Overpass API?
[英]Is it possible to get all OSM nodes (are not belong to any way) using the Overpass API?
我想获取所有OSM节点(不属于任何方式)。
可能吗?
可以理解,此查询获取所有节点(包括方式的成员)...
<osm-script output="json">
<query type="node">
<bbox-query {{bbox}}/>
</query>
<print/>
</osm-script>
9月19日20:20更新(GMT + 9:00)
我尝试了tyr的查询并获得了成功!
实际上,自最新版本的Overpass API以来,这是可能的:
<osm-script output="json">
<query type="way">
<bbox-query {{bbox}}/>
</query>
<recurse type="way-node" into="waynodes"/>
<query type="node" into="allnodes">
<bbox-query {{bbox}}/>
</query>
<difference>
<item set="allnodes"/>
<item set="waynodes"/>
</difference>
<print/>
</osm-script>
http://overpass-turbo.eu/s/14F
这使用difference
运算符从所有节点中减去以任何方式组成的节点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.