Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Numerical selector unexpectedly ignored #370

Closed
matthijsmelissen opened this issue Sep 12, 2014 · 3 comments
Closed

Numerical selector unexpectedly ignored #370

matthijsmelissen opened this issue Sep 12, 2014 · 3 comments
Labels
Milestone

Comments

@matthijsmelissen
Copy link

Consider the following Carto code:

[way_pixels < 192000][way_pixels > 3000] { 
  line-width: 1;
}

Carto translates this to the following filter:

<Filter>([way_pixels] &gt; 3000)</Filter>

I would expect the following filter instead:

<Filter>([way_pixels] &lt; 192000) and ([way_pixels] &gt; 3000)</Filter>

Reversing the quantifiers, or replacing < by <=, does give the expected output.

@springmeyer
Copy link

@math1985 - I think this is fixed in this pull: #393. Can you give it a try and let me know. /cc @gravitystorm @pnorman

@matthijsmelissen
Copy link
Author

Thanks! Not tested yet, but code looks good.

@matthijsmelissen
Copy link
Author

#369 is independent from this, right?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants