How do I configure a mutually exclusive combination of keep- and drop- options in osmfilter?
I want to discard any tracks --drop="highway=track"unless they have a --motor_vehicle=permissive tag, in which case I want to say --keep="motor_vehicle=permissive"
Is there a way to combine AND or OR to cleverly combine the drop and keep options? In short, I only want to keep highway=track if motor_vehicle=permissive. All other tracks can be dropped. Thanks
Thanks @ImreSamu but itās not clear how to combine a keep and a drop with boolean operators, as the example uses āorā and brackets as qualifiers for the keep option. I have a long list of filters for the first part of the āorā, and the second part is just --keep="motor_vehicle=permissive"
But itās not as straightforward as I thought. Thanks for the suggestion though
Try doing as a colleague above advises, I also use pyosmium in Python3, and it actually works very well at the moment. As for the issue of dropping and storing, Iām not able to help you at the moment either, although itās probably possible with osmfilter.