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

TiledRangeEnumerator crashes on negative latitudes #22

Closed
pietervdvn opened this issue Dec 31, 2018 · 2 comments
Closed

TiledRangeEnumerator crashes on negative latitudes #22

pietervdvn opened this issue Dec 31, 2018 · 2 comments
Assignees

Comments

@pietervdvn
Copy link
Contributor

When passing a negative latitude into 'WorldToTile', this value overflows into something just below uint.maxValue.

In turn, this trips the Top <= Bottom assertion in the TileRangeconstructor - crashing the unit test.

@pietervdvn
Copy link
Contributor Author

This problem also popups at high zoom levels (e.g. zoom level 20):

Invalid tile range, top (4294967278) is lower than bottom (42) for box values (4,2302098274231, 85,0498809814453, 4,25105810165405, 85,0516815185547) (topLeft: 536609, 4294967278).

@pietervdvn
Copy link
Contributor Author

As mentioned privately, zoom levels > 19 are not supported. I added an argument check for this. The issue did not reappear once this was fixed.

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

No branches or pull requests

2 participants