osmtogeojson中不感兴趣的标签的预期输入是什么

What is the expected input for uninterestingTags in osmtogeojson?

本文关键字:输入 是什么 标签 不感兴趣 osmtogeojson      更新时间:2023-09-26

我目前正在使用Leaflet.jsOverpass API,并使用osmtogeojson在Overpass API输出的OSM-JSON和Leaflet.js需要作为输入的GeoJSON之间进行格式更改。为此,我使用以下代码:

data = osmtogeojson(osm_data);

这非常有效。

问题来了:我试图忽略OSM-JSON数据集上的一些数据。因此,我尝试使用osmtogeojson API中给出的uninterestingTags。问题是我不知道如何编码这个东西。这不起作用:

 data = osmtogeojson(
      osm_data, uninterestingTags = {"source"}
 );

尝试将标记设置为true,如下所示:

uninterestingTags = {"source": true}