Bug report #11682
Raster calculator produces only 0 values with conditional expression
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||19926|
Steps to reproduce:
1. Download file from http://webgis.uster.ch/temp/temp_test.tif
2. Create a new project and set EPSG:21781 as projection
3. Open the raster file in the project
Expected outcome is that all raster values with value 249 are replaced with 255 and all other values would stay as they are. The actual outcome is that all values are set to zero.
#1 Updated by Andreas Neumann almost 5 years ago
Carlos Cerdan suggests in this thread ( http://lists.osgeo.org/pipermail/qgis-user/2014-November/029847.html ) that I may have to reproject my data before using the raster calculator. However, this did not really helps and should not be necessary.
#2 Updated by Giovanni Manghi almost 5 years ago
- Target version set to Version 2.8