developmentseed / developmentseed/async-geotiff

How to handle alpha/nodata in colormap

Open
#49 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
58
Forks
7
Avg merge
1d 5h
Merged PRs (30d)
2

Description

In #48 we added a colormap abstraction.

How should we handle alpha?

In rasterio, the `colormap` method gives an RGBA dictionary, and the alpha of the nodata value is set to 0 instead of 255.

For our colormap we do that for the `as_rasterio`, but not for `as_dict` or `as_array`.

It would be great to have some more discussion about what the best API is here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.