简体   繁体   English

overpass api - 请求任何具有标记的节点

[英]overpass api - requesting any node that has tag

I was wondering if it's possible to request via overpass API "any node that has at least one tag of any kind". 我想知道是否可以通过立交桥API“任何至少有一个任何标签的节点”请求。 The only way I see right now is to sopecify all the existing tags in a huge union request (see below), or requesting nodes without the "tag filtering" at all, and getting many nodes that have no tag at all. 我现在看到的唯一方法是在巨大的联合请求中指定所有现有的标签(见下文),或者根本没有“标签过滤”请求节点,并且获得许多根本没有标签的节点。 I will appreciate if you know a better solution. 如果您知道更好的解决方案,我将不胜感激。 Thanks! 谢谢!

[out:json];
(
  node
    ["name"]
    (50.6,7.0,50.8,7.3);
  node
    ["amenity"]
    (50.6,7.0,50.8,7.3);
  AND SO ON (SPECIFY ALL THE OTHER TAGS)
);
out;

You can achieve this by using the following query: 您可以使用以下查询来实现此目的:

[bbox:{{bbox}}];node[~"."~"."];out meta;

Example: http://overpass-turbo.eu/s/4Z4 示例: http//overpass-turbo.eu/s/4Z4

Since version 0.7.54 you can also use the following approach: 从版本0.7.54开始,您还可以使用以下方法:

[bbox:{{bbox}}];
node(if:count_tags() > 0);
out meta;

As far as I can see this is not possible at the moment. 据我所知,目前这是不可能的。 However you can post-filter the data using osmfilter / osmconvert . 但是,您可以使用osmfilter / osmconvert对数据进行后期过滤。

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

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