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

Invalid CRS: "init='epsg:3857' while creating mbtiles #14

Open
planemad opened this issue Feb 26, 2018 · 7 comments
Open

Invalid CRS: "init='epsg:3857' while creating mbtiles #14

planemad opened this issue Feb 26, 2018 · 7 comments

Comments

@planemad
Copy link

Have been trying to create an mbtiles with a 2 band data tif that i have :

rio rgbify india-pop-density.tif india-pop-density.mbtiles --max-z 10 --min-z 2

but I get this error:

rasterio.errors.CRSError: Invalid CRS: "init='epsg:3857'"

cc @dnomadb @perrygeo

@planemad
Copy link
Author

Tried this on a couple of different rasters with the same error.

@alo8
Copy link

alo8 commented Mar 29, 2018

In file mbtiler.py, try replacing "init='epsg:3857'" by just "epsg:3857". This should fix the issue.

@vincentsarago
Copy link
Contributor

you can also pip install this branch https://github.com/mapbox/rio-rgbify/tree/sgillies-patch-1. I'll see if we can merge it and make a new release soon.

@andrewharvey
Copy link
Contributor

@vincentsarago that PR works for me. Hope it can be merged and released.

@vincentsarago
Copy link
Contributor

👋 Hi @andrewharvey, sadly I don't have the power to merge the PR, we'll have to see with @dnomadb or @sgillies (sorry guys)

@sgillies
Copy link
Contributor

sgillies commented Feb 5, 2019

Sorry, folks, I've got no ETA for an update of this package.

@kannes
Copy link
Contributor

kannes commented Apr 5, 2023

For anyone ending up here, the fix from https://github.com/mapbox/rio-rgbify/tree/sgillies-patch-1 has long been fixed in this repo (in 822aafc).

But the pip installable package is older than that.

You can install the latest development version from this repository using pip install git+https://github.com/mapbox/rio-rgbify. Check afterwards with pip freeze | grep rio-rgbify.

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

No branches or pull requests

6 participants