190 Commits

Author SHA1 Message Date
Nyall Dawson
e42abf7dc5 Update python files 2024-01-22 05:46:15 +10:00
Nyall Dawson
c16a1e2b3d Update enums 2024-01-19 19:44:48 +10:00
Julien Cabieces
9d12ae8e6d [PyQt6] Add scope for enums and get rid of PyQt5.XXX import
this has been done automatically with the following comand line

./scripts/3to4/3to4.py --only-qgis3-compatible-changes ./python/plugins/
./scripts/3to4/3to4.py --only-qgis3-compatible-changes ./tests/src/python/
2024-01-10 21:15:27 +10:00
Nyall Dawson
33e1d4fba9 Check for non-zero cell sizes 2023-11-14 06:36:39 +10:00
Nyall Dawson
da514d0e5e Fix exception in interpolation algorithm widgets
Fixes #55138
2023-11-14 06:36:39 +10:00
Nyall Dawson
27bcb01cb6 Add some typehints 2023-11-14 06:36:39 +10:00
Denis Rouzaud
c76b86e26b
move enum QgsMapLayerProxyModel::Filter to Qgis (#54891) 2023-10-11 13:57:01 +02:00
Nyall Dawson
440cac298f Promote QgsProcessingModelChildParameterSource source to enum class and move to Qgis
This wasn't marked as stable API, so we don't need any of the usual monkey patching code
2023-08-25 15:44:05 +10:00
Etienne Trimaille
3cab3c43a2
Python - Run pyupgrade on the processing plugin 2023-04-24 10:03:57 +02:00
Nicolas Godet
7b80b30c2a Fixes #50963 : Index already passed don't call findText 2022-11-24 08:01:47 +10:00
Jan Caha
061a96a9e7 fix missing bracket 2022-05-07 06:53:08 +10:00
Jan Caha
ab16477158 fix line break 2022-05-07 06:53:08 +10:00
Jan Caha
46dd681fd5 fix widget data reading - i.e. from History 2022-05-07 06:53:08 +10:00
franc
a5402f74a7 [bugfix][ui][rastercalculator] commit for disabling translation for operators in raster calculator
fixes #42441

changed two files, unchecked the option for translation for the operators button of the calculator
2021-06-02 16:40:46 +02:00
Evan Derickson
ef6799fad4 More append thinning
Along with some other loop optimizations
2021-02-20 12:26:00 +10:00
Denis Rouzaud
eddf6feb45 modernize CMakeLists.txt files 2020-11-12 07:14:46 +10:00
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
Ivan Ivanov
d32369f5ce Translate qgis::fieldcalculator to C++ (simplistic UI) 2020-09-11 10:55:12 +03:00
Nyall Dawson
d5a340f886 [processing] Port aggregates widget wrapper to c++
And add a TON of tests

Fixes #36843
2020-06-03 15:17:56 +10:00
Nyall Dawson
b4c3acd447 Remove unused file 2020-06-02 08:43:54 +10:00
Nyall Dawson
f0bb647c61 [processing] Add a stable way to get processing widgets to stretch vertically 2020-06-02 08:43:54 +10:00
Nyall Dawson
146094f6b2 [processing] Port field mapper wrapper and widget to c++
Fixes #36706
2020-06-02 08:43:54 +10:00
Nyall Dawson
dbe9aa0902 [processing] Port Refactor Fields to c++
Having this core algorithm in Python has proved just too unreliable

Refs #36706, refs #36843
2020-06-02 08:43:54 +10:00
Nyall Dawson
191e362ed4 Move FieldMapper parameter type to c++
Fixes sip "forgeting" about Python overrides for the type definition

Refs #36706
2020-06-02 08:43:54 +10:00
Nyall Dawson
5cc0f0964b Fix resetting fields in Refactor Fields algorithm dialog 2020-05-22 07:14:14 +10:00
Nyall Dawson
169ca650fe [processing] Fix exception when changing layer in Refactor Fields algorithm
Fixes #36582
2020-05-22 07:14:14 +10:00
Nyall Dawson
b6a7a10703 Fix some more python formatting issues, remove more flake exceptions 2020-05-11 11:41:50 +10:00
Juergen E. Fischer
2e7bebcf20 add code_layout test to verify that UIs either have a non-default window title or are not marked for translation 2020-04-24 16:30:45 +02:00
Alessandro Pasotti
a21800cf3e Adress PR review + model test + QgsExpression -> QString 2020-04-03 21:21:14 +10:00
Alessandro Pasotti
4a33c75bc9 Mapping panel: fix initial loading of source fields 2020-04-03 21:21:14 +10:00
Alessandro Pasotti
e1044d87f1 Use QgsFieldMappingWigdet in processing UI 2020-04-03 21:21:14 +10:00
Matthias Kuhn
342f1e3396
Merge pull request #31387 from gacarrillor/colour_refactor_fields
Show 'template layer' constraints info in the Refactor fields algorithm's UI
2020-03-18 07:10:06 +01:00
Nyall Dawson
fe4b2c89f9 Drop PostgisTableSelector 2020-03-16 19:42:02 +10:00
Nyall Dawson
edd0635fe3 [processing] Move responsiblity for creation of file filter strings from python to c++ 2020-03-16 10:08:46 +10:00
gacarrillor
d016d46c49 Improve readability in refactor fields UI 2020-02-24 06:20:25 -05:00
gacarrillor
2007370f61 Ensure backwards compatibility with calls not passing 'constraints' key
e.g., processing.execAlgorithmDialog(..., 'FIELDS_MAPPING':[{'expression': 't_id', 'length': -1, 'name': 't_id', 'precision': 0, 'type': 4}], ...)
2020-02-22 23:31:55 -05:00
gacarrillor
016a813afe Refactor fields UI: Add 'template' to label to link that layer to new column 2020-02-22 18:05:23 -05:00
gacarrillor
b05437c833 'Template properties' column for Refactor Fields algorithm
as a hint on template/target layer constraints.
A row of a template layer field with constraints is coloured and a tooltip shows the constraints in the corresponding 'Template properties' cell.
2020-02-22 17:21:13 -05:00
gacarrillor
09fc2c3406 Highlight NOT NULL target fields in the Refactor fields algorithm's UI:
+ By adding a new 'NOT NULL' column in the mapping widget, and
+ By adding an orange color (same as used in attribute form warnings) to the whole row.

New paragraph added to help panel to let users know why some rows are coloured.
2020-02-21 16:51:42 -05: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
nirvn
9ce1093bce [FEATURE][ogr] Add string list field type support 2019-04-10 08:06:12 +07:00
Nyall Dawson
ac651ee0d9 Followup 8d51a693, fix broken plugins 2019-03-27 07:20:43 +10:00
Denis Rouzaud
8d51a693a1 missing changes of QgsMapLayer::Type => QgsMapLayerType 2019-03-26 14:09:19 -05:00
Nyall Dawson
95930ed68c [processing] Fix IDW parameter value creation 2019-03-15 08:38:01 +10:00
Nyall Dawson
c24f51ece8 [processing] Fix exception in IDW interpolation
Fixes #21578
2019-03-15 08:38:01 +10:00
Nyall Dawson
6021683c35 Capitalization 2019-02-20 05:39:04 +10:00
Nyall Dawson
346f33544c [processing] Expose correct expression context in Refactor fields alg 2019-02-20 05:39:04 +10:00
volaya
eb47288fac [processing] correctly set output styles for models
fixes #20573
2019-01-23 08:02:19 +01:00