-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Setting Raster Transparency using "Add values from display" doesn't work #25740
Comments
Author Name: Alessandro Pasotti (@elpaso) Can you please add step-by-step procedure to reproduce the issue and if possible a minimal project with a small dataset?
|
Author Name: Michel Stuyts (@mstuyts) I tested it with multiple raster-files (TIF and PNG). One of those files can be downloaded from: https://downloadagiv.blob.core.windows.net/winterbedkaart/Winterbedkaart+(Watertoets).zip
After these steps the effect is different on Windows and Ubuntu Linux:
|
Author Name: Michel Stuyts (@mstuyts) In the Layer Styling Panel, the "Add values from display" button in the Transparency Tab works as it should. |
Author Name: Alessandro Pasotti (@elpaso) Thanks for adding the information, looking at this bug now ...
|
Author Name: Alessandro Pasotti (@elpaso)
|
Author Name: Anónimo (Anónimo) Applied in changeset 75e613c.
|
Author Name: Michel Stuyts (@mstuyts) The main part of this issue (QGIS crashing or blocking) is solved, but a minor part of it still isn't ok. The issue is different on Ubuntu and Windows. On Ubuntu Linux:
On Windows 10:
If in Windows steps 3 to 7 are repeated, there are two minimized Properties Windows. By double clicking on their title bars, both can be enlarged and can exist next to each other:
|
Author Name: Alessandro Pasotti (@elpaso) I see: apparently the showMinimized function behaves differently on Linux and Windows (and nobody knows about Mac) I'm testing (on Linux) and I observe a different behavior on KDE than what you've reported. Btw, I see a possible solution in completely hiding the dialog instead of trying to minimize it. I'll make a new PR with this new approach, I'd really appreciate if you could test it when ready. |
Author Name: Anónimo (Anónimo) Applied in changeset e435d79.
|
Author Name: Alessandro Pasotti (@elpaso) Please test this new patch
|
Author Name: Michel Stuyts (@mstuyts) Problem solved! It works in Ubuntu 16.04 and Windows 10. Thank you very much. |
Author Name: Alessandro Pasotti (@elpaso) You are welcome! Thank you for the feed-back and thanks to all QGIS sponsors and donors that made this happen! |
Author Name: Michel Stuyts (@mstuyts)
Original Redmine Issue: 17845
Affected QGIS version: master
Redmine category:rasters
Assignee: Alessandro Pasotti
If I try to set the Transparent Pixels using "Add values from display" it gives no result. If I close the Layer Properties window after using "Add values from display" using OK or Cancel, QGIS becomes unresponsive on Windows and closes without a warning on Ubuntu.
Also the Layer Properties window remains minimized after clicking in the map window when trying to use "Add values from display".
The text was updated successfully, but these errors were encountered: