Please sign in to comment.
Add square brackets around the saved expression
When saving a raster expression the generated expression didn't contain square brackets around the letters used for band identifiers. Sticking with the NDVI example: ``` ("NIR@1" - "Red@1") / ("NIR@1" + "Red@1") ``` becomes ``` (a - b) / (a + b) ``` Due to the way the expression is parsed these would not be interactie parameters for the user to set as the parameters requre square brackets around the layer tags. This change simply updates the string replacement to include the square brackets so you would get instead: ``` ([a] - [b]) / ([a] + [b]) ```
- Loading branch information
Showing with 1 addition and 1 deletion.