I am trying to get all main railway tracks from an .osm.pbf file. My command looks like this:
My expectation was that osmium will match the file against all four filter expressions sequentially similar to a logical & operator. Somehow this doesn't seem to happen as my result contains entries that e.g. do not contain any railway attribute. The man page for osmium-tags-filter says:
I'm stuck here, maybe more experienced users can help? In QGis my filter works with following SQL filter expression:
asked 25 Dec '21, 13:29 pato3 |
The first sentence of the man page should make things clear: "Get objects matching at least one of the specified expressions from the input and write them to the output." So the expressions are ORed together. You can not do general AND expressions. Sometimes what you want can be done using inverted expressions and the -i option. Or you run Osmium several times, once each with the expressions you want ANDed. Generally answered 25 Dec '21, 17:25 Jochen Topf |