- changed status to resolved
Save Raster Layer As - NoneType doesn't define __round__ method
Issue #814
resolved
There is an issue when converting the hires_berlin.bsq to GeoTiff with “Copy metadata” enabled
QGIS version: 3.20.3-Odense
QGIS code revision: 495fbaecaf
Qt version: 5.15.2
Python version: 3.9.5
GDAL version: 3.2.2
GEOS version: 3.9.0-CAPI-1.16.2
PROJ version: Rel. 7.2.1, January 1st, 2021
PDAL version: 2.2.0 (git-version: Release)
Processing algorithm…
Algorithm 'Save raster layer as' starting…
Input parameters:
{ 'copyMetadata' : True, 'copyStyle' : True, 'creationProfile' : 'GTiff INTERLEAVE=BAND', 'outputRaster' : 'TEMPORARY_OUTPUT', 'raster' : '/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/exampledata/hires_berlin.bsq' }
Python command:
>>>processing.run('enmapbox:SaveRasterLayerAs', dict(raster='/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/exampledata/hires_berlin.bsq', copyMetadata=True, copyStyle=True, creationProfile='GTiff INTERLEAVE=BAND', outputRaster='TEMPORARY_OUTPUT'))
Console command:
>>>qgis_process run enmapbox:SaveRasterLayerAs --raster=/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/exampledata/hires_berlin.bsq copyMetadata=True copyStyle=True creationProfile="GTiff INTERLEAVE=BAND" outputRaster=/tmp/processing_EIhTIs/3bcea52fc7ad437489628bac9ee736e0/outputRaster.tif
Traceback (most recent call last):
File "/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/site-packages/typeguard/__init__.py", line 903, in wrapper
retval = func(*args, **kwargs)
File "/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapboxprocessing/algorithm/translaterasteralgorithm.py", line 311, in processAlgorithm
writer.setFwhm(reader.fwhm(srcBandNo, units), dstBandNo, units)
File "/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/site-packages/typeguard/__init__.py", line 903, in wrapper
retval = func(*args, **kwargs)
File "/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapboxprocessing/rasterwriter.py", line 120, in setFwhm
self.setMetadataItem('fwhm', round(fwhm, 5), '', bandNo)
TypeError: type NoneType doesn't define __round__ method
Execution failed after 0.26 seconds
Loading resulting layers
Algorithm 'Save raster layer as' finished
Comments (1)
-
- Log in to comment
resolves
#814→ <<cset b12fbfb0e8c8>>