- changed status to resolved
Save raster layer as fail
Issue #816
resolved
The Save raster layer as processing algorithm fails to save rasterst to temporary locations
Log:
QGIS version: 3.23.0-Master
QGIS code revision: 03e304fbb8
Qt version: 5.15.2
Python version: 3.9.5
GDAL version: 3.3.2
GEOS version: 3.10.0-CAPI-1.16.0
PROJ version: Rel. 8.1.1, September 1st, 2021
PDAL version: 2.3.0 (git-version: eac774)
Algorithm started at: 2021-10-27T12:35:22
Algorithm 'Save raster layer as' starting…
Input parameters:
{ 'copyMetadata' : True, 'copyStyle' : True, 'creationProfile' : '', 'outputRaster' : './testraster.tif', 'raster' : 'C:/Users/geo_beja/Repositories/enmap-box/enmapbox/exampledata/hires_berlin.bsq' }
Python command:
>>>processing.run('enmapbox:SaveRasterLayerAs', dict(raster='C:/Users/geo_beja/Repositories/enmap-box/enmapbox/exampledata/hires_berlin.bsq', copyMetadata=True, copyStyle=True, creationProfile='', outputRaster='./testraster.tif'))
Console command:
>>>qgis_process run enmapbox:SaveRasterLayerAs --raster=C:/Users/geo_beja/Repositories/enmap-box/enmapbox/exampledata/hires_berlin.bsq copyMetadata=True copyStyle=True creationProfile= outputRaster=C:/Users/geo_beja/AppData/Local/Temp/processing_jCzOsc\./testraster.tif
Execution completed in 0.32 seconds
Results:
{'outputRaster': 'C:/Users/geo_beja/AppData/Local/Temp/processing_jCzOsc\\./testraster.tif'}
Execution completed in 0.39 seconds
Results:
{'outputRaster': 'C:/Users/geo_beja/AppData/Local/Temp/processing_jCzOsc\\./testraster.tif'}
Loading resulting layers
The following layers were not correctly generated.
• ./testraster.tif
You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.
Comments (2)
-
-
Note that when the EnMAP-Box is startet from PyCharm, a relative temp-filename results in an absolute path located in the current working directory, e.g. D:\source\QGISPlugIns\enmap-box\scripts
This may be suboptimal, but can’t be avoided, without producing the reported issue: “
The following layers were not correctly generated.
“Inside QGIS, the folder is more useful, e.g.: “C:/Users/Andreas/AppData/Roaming/QGIS/QGIS3/profiles/default/processing/outputs/“
- Log in to comment
resolves
#816→ <<cset 8f7069cb66a3>>