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

Added support for creating an mbtile file from an ArcGIS server-generated image cache #44

Merged
merged 1 commit into from
Apr 22, 2013

Conversation

csomerlot
Copy link
Contributor

AGS caches use a different tiling scheme, so added that as a scheme option. One directional for now, added exception handling and debug logging to go with it.

@tmcw
Copy link
Contributor

tmcw commented Mar 29, 2013

Hmm, this adds a lot of switches in that loop. Can you try refactoring this into two loops - one for ags-style, one for not - and the actual insertion into the db as a separate method?

@csomerlot
Copy link
Contributor Author

Yep, I can do that, but for my own education, what is the objective, to made the code more readable?

@tmcw
Copy link
Contributor

tmcw commented Mar 29, 2013

Yes, essentially - if there's a much-different directory structure, it makes sense to have a separate chunk of code for handling it.

tmcw added a commit that referenced this pull request Apr 22, 2013
Added support for creating an mbtile file from an ArcGIS server-generated image cache
@tmcw tmcw merged commit f57419c into mapbox:master Apr 22, 2013
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