-
Notifications
You must be signed in to change notification settings - Fork 97
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
setSortKey does not create an error message when key is too large #398
Comments
I've run into this as well. If there's not already some reference in the documentation (if there is I've missed it) maybe mentioning somewhere that |
What is -ea? |
Thanks for the hint... |
By default, assertions are disabled, |
Thanks |
yeah I use |
Probably it is enough to highlight the -ea flag in the readme. Should I make a pull request? |
I use the
setSortKey
to only keep text labels for the largest places in a given tile or subpart of a tile.My
processFeatures
function looks like this:This works really well in Switzerland where the QRanks are I think all below 2.4M or so. But for larger cities, the label gets dropped. For example, Milano is not included in the map:
https://wipfli.github.io/swiss-map/#map=8.78/45.5971/9.3084
I think this is because the QRank of Milano is 4402075 while the maximum allowed key is
int SORT_KEY_MAX = 4194303
.From the source code, I would have expected to get an error message when I give a too large or a too small sort key, but I did not get any error message. Is this expected?
I think this is the relevant part of Planetiler:
The text was updated successfully, but these errors were encountered: