-
Notifications
You must be signed in to change notification settings - Fork 38
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
Fix crs input for reproject #15
base: master
Are you sure you want to change the base?
Conversation
@@ -129,7 +129,7 @@ def _tile_worker(tile): | |||
reproject( | |||
rasterio.band(src, 1), out, | |||
dst_transform=toaffine, | |||
dst_crs="init='epsg:3857'", | |||
dst_crs='epsg:3857', |
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.
This is the best way to do it for web mercator. If the previous worked, it would have only been by accident, as Rasterio was only expecting +init=epsg:3857
(no quotes inside the string).
It looks like there hasn't been a Travis build in a year until this one and tests are failing due to changes in dependencies. |
This built fine ~ 3 months ago: https://travis-ci.org/mapbox/rio-rgbify/builds/316721443?utm_source=github_status&utm_medium=notification -- I'll look into the test changes |
Please, merge that. The project is no more usable as is. |
I guess this issue is now fixed and this PR could be closed. https://github.com/mapbox/rio-rgbify/blob/master/rio_rgbify/mbtiler.py#L141 |
Fixes a reported issue.