error in QPS when opening EnMAP L2A QL_QUALITY_CLASSES.TIF raster
Issue #1025
resolved
Use testdata from SAN_ENMAP:
\sensors\enmap\L2A_Arcachon_3_combined\ENMAP01-____L2A-DT000400126_20170218T110119Z_003_V000204_20200512T142942Z-QL_QUALITY_CLASSES.TIF
Dropping the file on the map view area raises error:
Traceback (most recent call last):
File "D:\source\QGISPlugIns\enmap-box\enmapbox\qgispluginsupport\qps\layerconfigwidgets\rasterbands.py", line 449, in createWidget
w = RasterBandConfigWidget(layer, canvas, parent=parent)
File "D:\source\QGISPlugIns\enmap-box\enmapbox\qgispluginsupport\qps\layerconfigwidgets\rasterbands.py", line 172, in __init__
self.cbSingleBand.setLayer(self.mLayer)
File "D:\source\QGISPlugIns\enmap-box\enmapbox\qgispluginsupport\qps\layerconfigwidgets\rasterbands.py", line 70, in setLayer
FWHM = parseFWHM(layer)
File "D:\source\QGISPlugIns\enmap-box\enmapbox\qgispluginsupport\qps\utils.py", line 1802, in parseFWHM
sp = QgsRasterLayerSpectralProperties(dataset)
File "D:\source\QGISPlugIns\enmap-box\enmapbox\qgispluginsupport\qps\qgsrasterlayerproperties.py", line 72, in __init__
assert bandCount > 0
TypeError: '>' not supported between instances of 'QgsRasterLayer' and 'int'
Process finished with exit code -1073741819 (0xC0000005)
Comments (3)
-
reporter -
Cannot reproduce this error. Please check if this is still a valid issue
-
reporter - changed status to resolved
It's working now.
- Log in to comment
In QGIS it looks fine: