I am trying to filter administrative boundaries of admin_level 4. I carefully read the Osmosis reference and some examples, and composed the following query (the chevrons allow to feed multiple lines into the Windows Command Prompt):
This works fine in the sense that it yields all the required relations (checked the OSM file manually). However, no ways of nodes are included, which is not what I wanted as I need them to plot the administrative boundaries. It seemed an obvious error to me as I first accept the required relations, then reject all ways and nodes, leaving Osmosis unable to resolve the used ways and nodes in the relations. Then did the following, however this yields the same result:
Then did the following:
However this yields an enormous result (700 MB PBF file), including far more data then is neccessary for the selected relations. Can someone please elaborate on how to exactly read the Osmosis queries and show an example of what is the correct query (relations:admin_level=4 including depending sub-relations, ways and nods)? BTW: This question is related to my question about Osmfilter. asked 05 Feb '16, 02:43 Steijn |
The following works correct. First filter the relations (step 1), then filter the ways (step 2) en then filter the nodes (step 3). I must say, Osmosis is not a very straight forward tool to use. Step 1:
Step 2:
Step 3:
Are there any suggestions on how to improve the rather tedious method? :) answered 06 Feb '16, 00:21 Steijn |
I did run another query:
This again results in a very large PBF file (700 MB PBF file), clearly contains far more data than needed. :(
meta: please could you add this as a "new comment" instead if it is no "answer" to the original question? :-) Or edit your original question text and add it there.
Conversion from answer to comment done.
@Stejin: we are happy when you pay attention to this hint from aseerel4c26.