[Color Space Explorer app] error for non-spectral raster
Issue #1277
resolved
Reported by @Fabian Thiel .
I think this error showed up when I selected a layer (indices) without wavelength information which was currently visualized as singleband gray
AttributeError: 'QgsSingleBandGrayRenderer' object has no attribute 'setRedBand'
Traceback (most recent call last):
File "/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/coreapps/colorspaceexplorerapp/colorspaceexplorerdialog.py", line 217, in onLiveUpdate
self.onApplyClicked()
File "/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/coreapps/colorspaceexplorerapp/colorspaceexplorerdialog.py", line 205, in onApplyClicked
layer.renderer().setRedBand(self.mRedBand.currentBand())
AttributeError: 'QgsSingleBandGrayRenderer' object has no attribute 'setRedBand'
Comments (2)
-
reporter -
reporter - changed status to resolved
Looks like it's already fixed.
- Log in to comment
@Fabian Thiel also reported:
This is related to a bug that we can’t solve. Currently you need to manually remove all non-EnMAP-Box layers here: