Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raster Calculator doesn't work with spaces in layer names #16247

Closed
qgib opened this issue Feb 21, 2013 · 2 comments
Closed

Raster Calculator doesn't work with spaces in layer names #16247

qgib opened this issue Feb 21, 2013 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@qgib
Copy link
Contributor

qgib commented Feb 21, 2013

Author Name: Jonathan Moules (Jonathan Moules)
Original Redmine Issue: 7206
Affected QGIS version: master


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.

@qgib
Copy link
Contributor Author

qgib commented Jun 2, 2013

Author Name: Giovanni Manghi (@gioman)


  • priority_id was changed from High to Normal

@qgib
Copy link
Contributor Author

qgib commented Aug 12, 2013

Author Name: Alexander Bruy (@alexbruy)


Duplicates #14493


  • resolution was changed from to duplicate
  • status_id was changed from Open to Closed

@qgib qgib added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

1 participant