【发布时间】:2011-08-28 20:41:14
【问题描述】:
我正在使用 .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
但是,在尝试这样的代码时,我收到一个语法错误,指出:Argument does not contain a name before the '=' (i.e. name = value)。
有什么建议吗?
【问题讨论】:
标签: xml filter tags openstreetmap