-
-
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
Should detect a grayscale image with an alpha channel as grayscale (and related issues) #14136
Comments
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Giovanni Manghi (@gioman) This seems to be a still valid issue with the latest qgis master. |
Author Name: Alister Hood (@AlisterH) Alister wrote:
I also now need to manually specify min/max values of 0 and 255 (or 254 or whatever it is). I think these should be set automatically. Alister wrote:
Band 2 is now correctly identified as alpha on the "Transparency" tab, but not on the style tab. |
Author Name: Alister Hood (@AlisterH) Alister wrote:
In master this now works as I expected. |
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Larry Shaffer (Larry Shaffer) This issue appears to still be present in current master. Also, this happens when a GeoTiff (grayscale raster with alpha) loads via WCS, like when receiving output from GeoServer. Attached is a sample file and screen snaps. When the sample GeoTiff is loaded into QGIS, the layer had 2 bands (see screen snap):
Note: when loading a similar coverage via WCS, there is not indication of Gray/Alpha band type, like QGIS recognizes when loading the GeoTiff. Switching the render type to singleband grayscale still requires setting or loading some min/max values and stretching the contrast to those values to get the raster data to visibly render (see screen snap). The second band (alpha) is correctly recognized and auto-loaded into the Transparency layer properties panel for the GeoTiff (see screen snap). Other than the auto-loading of the alpha band, both WCS and the GeoTiff load as multi-band color. While there doesn't seem to be any recognition of the band types for WCS, there is for the loaded GeoTiff, i.e. at least that should have its render type properly set.
|
Author Name: Larry Shaffer (Larry Shaffer) I have a fix for this, and the WCS issue, in this PR: #2106 |
Author Name: Larry Shaffer (Larry Shaffer) Fixed in changeset "1f74cf08de0a9190eec8349526202e6edaa9d982".
|
Author Name: Alister Hood (@AlisterH)
Original Redmine Issue: 4159
Affected QGIS version: master
Redmine category:rasters
I used the Raster Clipper with a vector mask layer to create the attached image.
When loaded into QGIS it is invisible until I open the layer properties and specify to render as single band gray.
-2. I would have expected rendering as three band colour to display something even if less than three bands are selected, essentially by using 255 for the missing bands. In some cases a user might want to do "two band rendering" like this. What do you think?
The text was updated successfully, but these errors were encountered: