Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accept empty filter parameter in id: #65

Closed
SlowMo24 opened this issue Oct 22, 2020 · 4 comments
Closed

accept empty filter parameter in id: #65

SlowMo24 opened this issue Oct 22, 2020 · 4 comments
Labels
upstream Issue or feature request related to an upstream dependency (e.g. OSHDB)

Comments

@SlowMo24
Copy link
Contributor

The following query results in code 400 I would expect it to not filter for ids.

(landuse=* or natural=* or waterway=*) and geometry:polygon and ((not id:() and type:way) or (not id:() and type:relation))

@SlowMo24
Copy link
Contributor Author

also only 0 is accepted as dummy value (no id<0)

@FabiKo117
Copy link
Contributor

FabiKo117 commented Oct 22, 2020

I can't follow. I don't quite get why you want to specifically "not filter for ids". If you don't specify any id filter, then automatically you don't filter for them, i.e. the id is irrelevant.
edit: So for further explanation: the id is not something like a tag, where it makes sense to write "not maxspeed=30" for example to exclude features with this specific tag. Every feature has an id.

@FabiKo117 FabiKo117 added the upstream Issue or feature request related to an upstream dependency (e.g. OSHDB) label Oct 22, 2020
@SlowMo24
Copy link
Contributor Author

yes, I understand this seems odd. It happened in an automated environment where I query data for different regions but want to ignore data that I already have. Sometimes I have no data for a region resulting in the above filter. You can decide if you want to close this as no-fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Issue or feature request related to an upstream dependency (e.g. OSHDB)
Projects
None yet
Development

No branches or pull requests

3 participants