-
Notifications
You must be signed in to change notification settings - Fork 19
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
Scope extent in zoom calculations to avoid error #145
Conversation
f1a1bf8
to
6aec23d
Compare
I added a function that normalizes longitudes by ensuring that they fall within the +/-180 range. This fixes the failing test case and doesn't cause any other tests to fail. |
@rclark Just pinging you so this is on your radar. We talked about it anyway. BTW: Do you think Coveralls has anything to say about it? |
💔 coveralls |
I suspect that the |
You zoom ranges do not look wrong:
What zoom ranges do you get for these tests without your code change? |
Ok, thanks! Without the code changes we get errors thrown instead of zoom ranges. |
6aec23d
to
3dacc2e
Compare
I changed the way the extent gets "normalized" so that it doesn't bother trying to re-scope the longitudes, just stops them at +/-180. @rclark What do you think about merging this? (Or is there someone else I should ping?) The alternative would be change something upstream so that the end user of an upload gets an error that's more meaningful to them than |
I'm going to close this and open another, more focused and directed issue/ticket. |
I think this may be connected to #142, and may illustrate an incomplete resolution to #88.
As far as I can tell, this new fixture is valid GeoJSON, but when we try to get its min/max zoom, we end up hitting the error here:
mapnik-omnivore/lib/utils.js
Line 27 in 805d115