使用 Osmosis 过滤 OSM XML 标签
我正在处理 .osm 文件,并尝试根据标签过滤实体。我需要仅查看包含源标签和归因标签的实体。我使用以下内容仅成功过滤了所有源标签:
osmosis --read-xml file = "northern_ireland.osm" --way-key-value keyValueList="source" --used node --write-xml northern_ireland_source.osm
从另一个教程中,我注意到我需要使用管道:http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.38
所以我做了以下操作:
osmosis --rx northern_ireland.osm --accept-ways source=* outPipe.0 = SOURCE
然而,在尝试这样的代码中,我收到语法错误,指出:参数在“=”之前不包含名称(即名称 = 值)。
有什么建议吗?
I am working with .osm files and am trying to filter entities based on tags. I need to view only entities containing both source and attribution tags. I used the following to successfully filter all source tags only:
osmosis --read-xml file = "northern_ireland.osm" --way-key-value keyValueList="source" --used node --write-xml northern_ireland_source.osm
From another tutorial, I've noticed that I would need to use a pipe: http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.38
So I did the following:
osmosis --rx northern_ireland.osm --accept-ways source=* outPipe.0 = SOURCE
However, upon trying such code, I get a syntax error stating: Argument does not contain a name before the '=' (i.e. name = value).
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,“=”前后可能没有空格:
第二个 IIRC outPipe.0 是 --rx 的参数:
可能有效。
但它没有经过测试。
自从我使用那根管道以来已经有一段时间了;)
first there may not be an space before and after the "=":
second IIRC outPipe.0 is an argument of --rx:
that may work.
but it isn't tested.
its a little time ago since i used that pipes ;)