How to handle conflicting filters in osmfilter

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

5 posts - 3 participants

Read full topic


Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/how-to-handle-conflicting-filters-in-osmfilter/103543