Nyall Dawson
810cb9c0f7
Start replacing python model
2018-07-16 11:38:13 +10:00
Salvatore Larosa
f993ec05be
Fixes #19417 - AttributeError: 'BatchInputSelectionPanel' object has no attribute 'getText'
2018-07-16 09:00:10 +10:00
Luigi Pirelli
1875b025da
Merge pull request #7362 from rudivs/update_maplayerwidgetwrapper
...
Add 'not selected' option for optional layer parameters in processing models
2018-07-11 15:25:12 +02:00
Nyall Dawson
6c014b46ba
[processing] Use c++ recent algorithm log, remove python log
...
Indirectly fixes #19218
2018-07-05 02:37:03 +10:00
Rudi von Staden
57fb4ef27c
Add 'not selected' option for optional layer parameters in processing model view
...
Fixes #19329 (https://issues.qgis.org/issues/19329 )
Optional layer parameters in processing algorithms used in the graphical modeler
add an empty string as the default parameter value, which can raise an exception
during algorithm execution. This update replaces the default empty string with a
default 'Not selected' option.
2018-07-04 13:45:46 +02:00
Nyall Dawson
f43adf7a8b
Fix test
2018-07-03 09:43:40 +10:00
Nyall Dawson
2cc9bc8f73
[processing] Fix unexpected newlines showing in python command in history dialog
2018-07-03 09:43:40 +10:00
Nyall Dawson
1621402652
[processing] Fix exception when clicking alg with distance param in history dialog
2018-07-03 09:43:40 +10:00
Martin Dobias
80b0c72c50
Fix a Python error in Processing GUI
...
It turns out that an empty QComboBox evaluates to False:
>>> t=QLineEdit()
>>> bool(t)
True
>>> c=QComboBox()
>>> bool(c)
False
Due to that, the 'TABLE' parameter was missing if its (editable) combo box was empty.
Original error - while updating an algorithm's parameters (gdal:importvectorintopostgisdatabaseavailableconnections)
Traceback (most recent call last):
File "/home/martin/qgis/git-master/build-debug/output/python/plugins/processing/algs/gdal/GdalAlgorithmDialog.py", line 121, in parametersHaveChanged
or (not p.checkValueIsAcceptable(parameters[p.name()])):
KeyError: 'TABLE'
2018-06-22 13:30:26 +02:00
Alexander Bruy
dcff720bb0
also use 1-dimensional table in modeler dialog (follow up 4b354984e8)
2018-06-14 09:35:11 +10:00
Nyall Dawson
6b24d8c6d7
[processing] Restore window geometry for fixed table editor dialog
2018-06-13 14:54:40 +10:00
Nyall Dawson
4e084b63c4
[processing] Fix exception when browsing for folder in processing
...
options for multiple folder settings
2018-06-11 15:16:11 +10:00
Luigi Pirelli
fa7879ade1
[processing] Correct management of optional rasters in batch mode. Fixes #19115
2018-06-05 11:53:52 +02:00
Nyall Dawson
e91aed6617
[processing] Force model outputs to respect constraints set by
...
their underlying algorithm's provider
E.g. for model outputs generated by a saga algorithm, only
sdat and shp files are valid outputs. So only give users choices
of these instead of all formats.
Also fixes temporary file names generated as part of model
execution may use formats which are not compatible with the
algorithm's provider.
Fixes #18908
2018-06-05 10:05:32 +10:00
Nyall Dawson
4b354984e8
[processing] Matrix parameter values are always 1-dimensional
...
Fix gui wrapper returns 2-dimensional parameters, which don't
match with the expectations of QgsProcessingParameterMatrix
2018-06-04 12:58:12 +10:00
Nyall Dawson
bd65fc607b
[processing][gdal] Don't double quote output paths
...
Breaks for some drivers, e.g. KML
Fixes #18264
2018-06-01 18:21:41 +10:00
Nyall Dawson
60a87e9497
[processing] Fix error when creating tests and raster output
...
no longer exists
Fixes #16123
2018-06-01 16:20:12 +10:00
Nyall Dawson
950d042e72
[processing] Fix errors when filling parameters in batch panel
...
Fixes #18408
2018-06-01 15:55:11 +10:00
Matthias Kuhn
8cf7447a2c
Merge pull request #7124 from nyalldawson/fix_16428
...
[processing] Hopefully fix bad layout for docks in modeler
2018-05-31 09:49:07 +02:00
Nyall Dawson
1d62d106fb
[processing] Don't hold on to algorithm instances for menu items
...
Instead, only store references to the algorithm id string, and
use this to retrieve algorithms when the actions are triggered.
This avoids errors caused by the algorithm instances being
removed, e.g. due to plugin removal or reload of providers
(e.g. by opening options dialog).
Fixes #19070
2018-05-31 15:28:12 +10:00
Nyall Dawson
59d425c5b0
[processing] Fix some incorrect formatting of algorithm titles
2018-05-31 15:27:51 +10:00
Nyall Dawson
db2c3d4986
[processing] Show search icon in search boxes
2018-05-31 12:51:53 +10:00
Nyall Dawson
aabbb307fa
[processing] Fix clearing destination doesn't actually reset to temporary output
...
Even though the UI makes it look like it did
2018-05-30 07:45:34 +10:00
Nyall Dawson
ce2f7739e7
[processing] Correct text for temporary folder output
2018-05-30 07:45:34 +10:00
Nyall Dawson
d157b6e661
[processing] Fix destination folder param is not updated after
...
picking from the file dialog alone
2018-05-30 06:12:09 +10:00
Nyall Dawson
ff7c70fc87
[processing][gdal] Fix gdal command does not automatically update
...
when destination value is changed
2018-05-29 22:21:31 +10:00
Nyall Dawson
870d20740c
[processing] Tweaks and checks for checkParameterValues
2018-05-28 16:02:38 +10:00
Nyall Dawson
6441b64a58
[Processing] Fix raster menu split in two in some locales
...
Fixes #17448
2018-05-28 13:49:13 +10:00
Nyall Dawson
c5ff6b9c99
[processing] Ensure parameters linked to layer parameters
...
(e.g. field choices) are correctly updated when a layer
is selected which doesn't belong to the project
2018-05-22 06:03:18 +10:00
Nyall Dawson
c0d9528090
Silence python warnings from 3rd party libraries on startup
2018-05-22 06:02:55 +10:00
Blottiere Paul
42199d1ad0
[processing] Declare NOT_SELECTED
2018-05-21 19:06:27 +10:00
Blottiere Paul
dcc79fcfbf
[processing] Fix invalid attribute's name
2018-05-21 19:06:27 +10:00
Nyall Dawson
b21632602f
[processing] Fix exception when editing enum input with no default value
2018-05-21 16:07:14 +10:00
Nyall Dawson
6b5e5b6ed5
[processing] Fix models cannot correctly set enum parameters
...
to a static choice
2018-05-21 16:07:14 +10:00
Alexander Bruy
303a79a143
[processing] fix temporary directories handling
2018-05-20 18:17:15 +10:00
Nyall Dawson
b98f8f1d37
[processing] Also filter using algorithm short descriptions
2018-05-17 08:50:39 +10:00
Nyall Dawson
5edcc64f72
[processing] Allow algorithms to return a translated short description
...
This is used in the algorithm's tooltip in the toolbox, and is intended
for single sentence description of the algorithm, e.g.
"Converts 2D features to 3D by sampling a DEM raster."
Convert grass algorithms to use short description for the
descriptive parts of their names, to cleanup the toolbox
and make it more uniform.
2018-05-17 08:50:39 +10:00
Nyall Dawson
d864cd6725
[processing] Correctly capitalize menu entry actions, add ellipsis
2018-05-16 14:08:43 +10:00
Alexander Bruy
c985092a6d
fix typo
2018-05-14 18:47:14 +03:00
arnaud.morvan@camptocamp.com
81dabd185c
[processing] Finish default values in model for destination parameters
2018-05-14 22:12:32 +10:00
Nyall Dawson
c5f478c38f
[processing] Fix destination resets to 'memory:' instead of temporary layer
2018-05-14 22:12:32 +10:00
arnaud.morvan@camptocamp.com
4ccd4446fe
[processing] Add default values in model for destination parameters
2018-05-14 22:12:32 +10:00
Nyall Dawson
e35d1d0ed9
Fix setting default value for non-multiple enum params
2018-05-11 15:49:52 +10:00
Alexander Bruy
26a97a7da7
[processing] improve default values handling in the enum modeler GUI
2018-05-11 15:49:06 +10:00
Alexander Bruy
e97212e8b7
[processing] correctly restore default values
2018-05-11 15:49:06 +10:00
Alexander Bruy
0046b9f824
add single item to matrix parameter by default
2018-05-11 15:49:06 +10:00
Alexander Bruy
18f3151808
[processing] couple of fixes for matrix parameter
2018-05-11 15:49:06 +10:00
Alexander Bruy
bb0feccec4
[processing] use another icon for clear button and add confirmation
2018-05-11 15:49:06 +10:00
Alexander Bruy
3ec2dfa611
[processing] don't allow multiple enum items to be selected if
...
allowMultiple is not set
2018-05-11 15:49:06 +10:00
Alexander Bruy
39456ba6b4
[processing] fix handling of the multiple enum values
2018-05-11 15:49:06 +10:00