[英]How to find nodes within ways in Overpass QL?
I have a query which returns a number of way
s. 我有一个查询,它返回许多
way
s。 I want to find node
s matching certain criteria which appear within those ways. 我想找到符合某些条件的
node
这些条件以这些方式出现。 Note that the nodes I'm interested in do not form part of the way itself, but do appear within the bounds of the way. 请注意,我感兴趣的节点并不构成该方法本身的一部分,而是出现在该方法的范围内。 Also, the ways do not all have corresponding areas, so using the area search doesn't work in all cases.
同样,这些方式并不都具有相应的区域,因此使用区域搜索并非在所有情况下都有效。
I've got a minimal example which finds way 95677318, and I want to be able to find node 1552949334: 我有一个最小的示例,它找到方式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;
(Try it on https://overpass-turbo.eu/s/EpV ) (在https://overpass-turbo.eu/s/EpV上尝试)
This feature is not yet available as of release 0.7.55. 从0.7.55版开始,此功能尚不可用。 In case there's no corresponding area available on the Overpass server, this kind of query is simply not feasible.
如果在立交桥服务器上没有可用的相应区域 ,则这种查询根本不可行。
See https://github.com/drolbr/Overpass-API/issues/77 for details. 有关详细信息,请参见https://github.com/drolbr/Overpass-API/issues/77 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.