Henry Walshaw
1312cfe599
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])
```
2020-09-14 15:58:38 +10:00
Nyall Dawson
b6a7a10703
Fix some more python formatting issues, remove more flake exceptions
2020-05-11 11:41:50 +10:00
Alessandro Pasotti
25edd83b0a
Processing raster calc: add missing btns and validate
...
Validate expression
2019-11-15 15:49:18 +01:00
matteo
cf634aa3aa
[processing] fix NDVI calculation
2019-05-28 15:40:47 +02:00
Bas Couwenberg
2628c480c5
Don't include revision in sources.
...
Prevent changes to files that weren't changed between releases.
This eases review of the changes between releases significantly.
2019-05-17 16:47:47 +02:00
Alessandro Pasotti
1672d434ce
Raster calc: refresh layers list if a layer is renamed or added/removed
...
Fixes #20601 - bug: Raster calculator produces empty results layer and no error message if input layer is one that has been renamed in QGIS layers panel
2018-11-29 18:30:01 +01:00
Alessandro Pasotti
18854dc7b6
Do not add duplicates in raster calc layers list
...
Related to #20601
2018-11-29 12:26:57 +01:00
Luigi Pirelli
e611756f09
fix error because constant is not iterable
2018-09-07 20:40:35 +10:00
Luigi Pirelli
95a4c00584
fix reference to widget as instance attribute not through a method
2018-09-07 20:40:35 +10:00
Luigi Pirelli
580ecafa32
Merge pull request #7396 from luipir/rastercalculator_model_fix
...
[processing] Rebirth RasterCalculator in Modeler. Fixes #19302
2018-09-04 18:13:04 +02:00
Nyall Dawson
644ef6a752
[processing] Initial work on porting base GUI classes to c++
...
- Add abstract base class for Processing widget wrappers to c++
- Add wrapper factory interface to c++
- Make QgsProcessingGuiRegistry also register widget wrapper
factories, and be responsible for creation of new c++
processing widget wrapper instances
- Start on private c++ implementation of boolean widget wrapper,
including unit tests
2018-09-04 19:06:07 +10:00
Luigi Pirelli
5ebe5d6c5b
show variableDescription as shown in the list of variables
2018-08-28 17:06:08 +02:00
Nyall Dawson
6e7c07bc86
Mark regex
2018-06-22 13:37:58 +10:00
Juergen E. Fischer
2c53630747
add missing copyright headers
2018-02-18 20:53:40 +01:00
Alexander Bruy
eb7a187a88
[processing] add missed imports ( fix #17843 )
2018-01-15 20:13:38 +02:00
Alexander Bruy
7cad24d82f
[processing] improve layout of the raster calculator dialog
2018-01-15 19:25:08 +02:00
Alexander Bruy
490aad112f
[processing] quote layer names in raster calculator ( fix #17847 )
2018-01-15 19:25:08 +02:00
Alexander Bruy
3d4a59bb8b
[processing] cleanup files from unused code and remove some files
2017-11-28 12:27:45 +02:00
Nyall Dawson
189f804714
Adapt more code to c++ API
2017-06-06 07:41:19 +10:00
Nyall Dawson
8ffdb362cc
Port some processing dataobjects routines to c++
2017-04-05 15:27:17 +10:00
Juergen E. Fischer
c77172ed3d
fix more flake8 warnings
2017-03-05 10:21:24 +01:00
Juergen E. Fischer
8d8bbabf81
indentation update
2016-12-14 14:13:31 +01:00
volaya
e41c2a7b05
[processing] allow saving custom predefined expressions
2016-12-08 10:12:23 +01:00
Alexander Bruy
897d27fa5c
fix import
2016-12-07 15:39:16 +02:00
volaya
a8dd95addd
Fixed wrong import
2016-12-07 13:56:37 +01:00
volaya
bb7b6d41bc
[processing] added predefined expressions to raster calculator
2016-12-07 13:12:42 +01:00
Alexander Bruy
781ebd9a69
[processing] xrange() removed, should use range() instead
2016-12-01 12:53:57 +01:00
Alexander Bruy
3e7b26233e
[processing] replace deprecated % operator with format()
2016-12-01 12:53:57 +01:00
Alexander Bruy
50a785bdd6
[processing] indentation update
2016-12-01 12:53:57 +01:00
volaya
a7f9018e11
[processing] added native raster calculator algorithm
...
Conflicts:
python/plugins/processing/algs/qgis/QGISAlgorithmProvider.py
2016-12-01 12:52:45 +01:00