Open henhuy opened 2 years ago
Default colormap (if not setting up a legend) is not working properly (no range attribute set). This leads to color artefacts like this:
This is related to code in https://github.com/geodesign/django-raster/blob/34fffe3d1f921b2850d3cad598a3c9b382e1fec7/raster/views.py#L82-L100 as range and entries are only added if colormap exists in the first place. After removing else and unindending range and entries part, raster layer looks as expected:
else
Default colormap (if not setting up a legend) is not working properly (no range attribute set). This leads to color artefacts like this:![grafik](https://user-images.githubusercontent.com/17476051/133428268-66be7a06-0c88-4479-8ccd-7a309522d013.png)
This is related to code in https://github.com/geodesign/django-raster/blob/34fffe3d1f921b2850d3cad598a3c9b382e1fec7/raster/views.py#L82-L100 as range and entries are only added if colormap exists in the first place. After removing![grafik](https://user-images.githubusercontent.com/17476051/133429298-c85dfcfa-4a2b-460e-9376-57d0f3c7ea1c.png)
else
and unindending range and entries part, raster layer looks as expected: