I'm trying to filter sport, leisure and amenity keys and then merge them with Osmosis:
I have this error message that I don't understand:
I'm new with Osmosis. Sorry if this is a stupid question. But I cannot find the error. Thank you in advance. asked 14 Apr '14, 10:35 antonind |
You might want to give osmfilter a try, it is less complicated for use cases like this. answered 14 Apr '14, 11:17 Frederik Ramm ♦ SomeoneElse ♦ |
Your error message is explained in another answer (the merge task can merge only two pipes, so you need two merge tasks). But there's another way to address your problem, which is to avoid merging entirely: You're filtering one tag pattern in each of three parallel pipelines, then merging those pipelines. In fact, each tag-filter task can accept more than one tag pattern, and will accept/reject entities if they match any of those supplied tag patterns. Here is an alternative command creating a single pipeline that should produce exactly the same results as your three-pipeline approach:
However, both your command and the one I proposed will probably not produce the output you are expecting. Both commands are retaining all nodes and ways that have a sport, amenity, or leisure tag, but they are not retaining any nodes referenced by these ways if the referenced nodes don't also have a sport, amenity, or leisure tag. This is the purpose of the used-node task: it will retain any nodes that are referenced by a retained way. We can't just insert a used-node task into this single pipeline, because we want to retain both the nodes with certain tags and the nodes used by ways with those tags. So here you need two pipelines, but only one merge task:
answered 06 Feb '16, 18:43 abyrd |