Bug report #6696
Raster calculator - "in memory raster"
|Affected QGIS version:||2.2.0||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||end of life|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||15861|
If however I set output format to "In Memory Raster" (leaving everything else), then I get this error upon trying to execute it:
"C:/tempdata/asdf.tif is not a valid or recognized raster data source"
C:/tempdata/asdf.tif is what I specified as the "output layer".
There is some combination of the below bugs here, depending on desired behaviour:
a) It's not possible to press "ok" until an output layer has been specified. Even if the format is "in memory raster".
b) The In Memory Raster shouldn't be trying to write anything out so shouldn't care what's in the "output layer" field.
c) The error message implies that it is reading the data (it being a "source"). The error could instead say: "XYZ is not a valid or recognized raster destination"
#3 Updated by Martin Dobias over 7 years ago
So there are some GUI issues - for those I would suggest introducing a checkbox "keep in memory only" that would disable the format combo box + output layer. But more importantly the problem is that the output dataset is closed and then reopened - for in memory data it is fatal as all data are lost on close. Output raster layer in QGIS would need to be constructed from an existing GDAL dataset handle - there is currently no way of doing that (layers in QGIS are always constructed from URI string).
#6 Updated by Giovanni Manghi over 2 years ago
- Status changed from Open to Closed
- Resolution set to end of life
End of life notice: QGIS 2.18 LTR