Skip to content

Unable to replicate output of tags-filter command #274

Answered by lonvia
fbarbe00 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for trying out the new filters.

Your filters are not quite right. When you chain filters, then they applied one after the other. That effectively is a conjunction of conditions. You are thus filtering for ways with highway and public_transport=platform and railway=platform and park_ride tags. You can do or-filtering of tags or keys by adding multiple parameters to KeyFilter() or TagFilter(). However, it is currently not possible to or-chain filters. So if you have a mix of keys and tags you want to filter for, then you need to pre-filter by tag keys only and then further filter for the appropriate key-value combinations in the reader loop.

The other problem with the filters is that…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@fbarbe00
Comment options

Answer selected by fbarbe00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #273 on January 07, 2025 15:47.