使用water!=null在我的osm文件中查找内容,因为它们有一个‘水’标签,‘水’不是空的。
我用一个简单的--keep="water!=null"试过了,但是得到的osm过滤文件的大小和原始的osm文件一样大!所以我在想我做错了什么。
有什么想法吗?
发布于 2016-12-18 17:03:43
两个OSM文件可能具有不同的内容,尽管它们具有相同的大小。它们可以被压缩。最好使用--diff选项或简单地计算OSM对象:
osmconvert myfile.o5m --out-statistics要获取标记为"water“而不是”water=null“的所有对象:
osmfilter myfile.o5m --keep="water= and water!=null" -o=filtered.o5m请注意,默认情况下,osmfilter包含依赖对象。如果这不是您想要的,请使用--ignore-dependencies选项:
https://wiki.openstreetmap.org/wiki/osmfilter#Ignoring_interobject_Dependencies
有关osmfilter中的布尔运算符的更多信息,也可以在OSM Wiki中找到:
https://wiki.openstreetmap.org/wiki/osmfilter#Boolean_Operators
https://stackoverflow.com/questions/41050428
复制相似问题