-
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
increases max zoom levels for raster uploads #139
Conversation
@isiyu y. |
@@ -410,9 +410,9 @@ tape('[SPATIAL RESOLUTIONS] Get spatial resolutions / valid spatial resolutions' | |||
assert.end(); | |||
}); | |||
|
|||
tape('[SPATIAL RESOLUTIONS] Get spatial resolutions / valid spatial resolutions with weight 0.5', function(assert) { | |||
tape('[SPATIAL RESOLUTIONS] Get spatial resolutions / valid spatial resolutions with weight 0.25', function(assert) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious @isiyu - why did this test change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed the description - it said it was with weight 0.5 but the call below on line 418 was using weight 0.25
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💭 ... 👍
tests for if pixel resolution is over and under getValidSpatialResolutions threshold
… supporting node v0.12
@@ -87,7 +87,7 @@ module.exports.getUnitType = function(srs) { | |||
|
|||
module.exports.getSpatialResolutions = function() { | |||
var circumference = 40075000; | |||
var zoomLevels = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]; | |||
var zoomLevels = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not bump to z21?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GretaCB @isiyu maxzoom is zoomLevels.length
(https://github.com/mapbox/mapnik-omnivore/blob/moremaxzoom/lib/raster.js#L179), which means that this is 21. That said, previous maxzoom
was 20
(not 19, as I think we've assumed / verified on master and on branch setup from modularization a0c4cda), so I think bumping it to 21
(maxzoom of 22
- 2 more zooms) would be 👍
This reverts commit 3b7b6ee.
refs https://github.com/mapbox/unpacker/issues/852
@dnomadb does this need more
SPATIAL RESOLUTIONS
tests for the new zoom levels?