Skip to content

Commit

Permalink
Fixing opacity issue in rendering raster styled images
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinius committed Sep 18, 2023
1 parent 4bd04e5 commit 9e398d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified autotest/autotest/expected/WMS13GetMapDatasetStyledTestCase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion eoxserver/render/mapserver/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ def _create_raster_style(raster_style, layer, minvalue=0, maxvalue=255,

style = ms.styleObj()
style.color = ms.colorObj(*entry.color)
style.opacity = int(entry.opacity * 255)
style.opacity = int(entry.opacity * 100)
cls.insertStyle(style)
layer.insertClass(cls)

Expand Down

0 comments on commit 9e398d7

Please sign in to comment.