Bug report #7206
Raster Calculator doesn't work with spaces in layer names
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | - | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | duplicate |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 16247 |
Description
Using Master 5ed164a
This seems like quite a bad one because it appears to work but actually doesn't give feedback that its not or why not.
The following expression does "work" - it passes "expression valid" and the layer names are correct (I double-clicked them):
((IR SP1874@1 - RGB SP1874@1) / (IR SP1874@1 + RGB SP1874@1))
The problem is, the output result is "0" across the board.
To actually get a proper NDVI result, I need to rename my layers and use this:
((IRSP1874@1 - RGBSP1874@1) / (IRSP1874@1 + RGBSP1874@1))
So its not working when layers have spaces in their names.
History
#1 Updated by Giovanni Manghi over 11 years ago
- Priority changed from High to Normal
#2 Updated by Alexander Bruy over 11 years ago
- Resolution set to duplicate
- Status changed from Open to Closed
Duplicates #4586