Skip to content

Conversation

@MichaelChirico
Copy link
Contributor

@MichaelChirico MichaelChirico commented Oct 8, 2018

Root problem is that if zoom reaches to 18 and minNumTiles is still not reached, zoom increments to 19 but minX/minY/maxX/maxY don't change. So the tiles produced are incorrect.

Approach here is just to stop searching at zoom = 18 no matter what. This could optionally throw a warning in the case that i == 18L && ntiles < minNumTiles.

Further, I think that zoom = 19 is valid; we could change the loop to try i = 1:19 and then stop no matter what after 19...

I also think we can just calculate immediately what the zoom level should be, rather than iterating like is done now... at least we can narrow the focus to within one or two zooms and then do a local search to zoom_start +/-1... for another day

@ifellows
Copy link
Owner

ifellows commented Oct 8, 2018

There are merge conflicts with your previous pull request. Can you resolve?

@MichaelChirico
Copy link
Contributor Author

@ifellows things got a bit messy but all seems OK now. let me know if you want me to try and rebase for a cleaner PR.

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

Successfully merging this pull request may close these issues.

2 participants