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

Raise error when writing an RGBA colormap to a paletted TIFF #395

Closed
sgillies opened this issue Jun 30, 2015 · 3 comments
Closed

Raise error when writing an RGBA colormap to a paletted TIFF #395

sgillies opened this issue Jun 30, 2015 · 3 comments
Labels
Milestone

Comments

@sgillies
Copy link
Member

Instead of failing silently. See #394.

@sgillies sgillies added the bug label Jun 30, 2015
@sgillies sgillies added this to the 0.24.1 milestone Jun 30, 2015
@wmaiouiru
Copy link

So is this documentation not valid any more? https://github.com/mapbox/rasterio/blob/master/docs/colormaps.rst
Is there no way to create geotiff with rgba color map?

@sgillies
Copy link
Member Author

@wmaiouiru the GeoTIFF format doesn't support RGBA colormaps and all alpha values given become 255. Would it help you if Rasterio accepted colormap tuples like (r, g, b, 255) and only raised a ValueError if you passed (r, g, b, a) where a was not 255?

@sgillies sgillies reopened this Jul 31, 2015
@wmaiouiru
Copy link

@sgillies Thank you for the response. Even though it is not supported, I wonder if it is possible to supply a flag that acknowledge that you are creating something that is not quite supported and not raise a flag? But accepting (r,g,b,255) works too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants