Nyall Dawson
27277c54f1
Remove unused code
2020-01-05 20:50:05 +10:00
Nyall Dawson
223dfafb15
[processing] Port field parameter widget to new API
2020-01-05 08:59:38 +10:00
Nyall Dawson
70ee385f4a
[processing] Add message bar to widget context
2020-01-05 08:59:38 +10:00
Nyall Dawson
1a74938ba8
[processing] Add option for multiple field parameters to default to
...
selecting all available fields
For some algorithms this is better UX then defaulting to an empty list
2020-01-04 23:06:03 +10:00
Nyall Dawson
d788dfc0cb
Update menu link
2020-01-03 05:25:33 +10:00
Alexander Bruy
0219d0019e
Merge pull request #33290 from alexbruy/port-algorithms
...
[processing] port some algorithms to C++
2019-12-12 08:21:57 +02:00
Alexander Bruy
243cd6ce8b
use setValue() instead of setLayer() to handle different value types
...
(strings, variants, layers)
2019-12-11 04:49:14 +10:00
Alexander Bruy
dcdcb334ef
use active layer only if there is no default value
2019-12-11 04:49:14 +10:00
Alexander Bruy
f37a75923f
[processing] use active layer in the widget wrapper only for
...
non-optional parameters otherwise use default value
2019-12-11 04:49:14 +10:00
Alexander Bruy
8fb28c8657
update menu entries
2019-12-10 10:33:32 +02:00
Nyall Dawson
61454c67cd
[processing] Add api to allow providers to report warnings which should
...
be shown to users when using that provider
This can be used to return a translated warning message which should be
shown to users of this provider. It's intended for use in cases such as
a provider which relies on a 3rd-party backend, where the version of the
backend software is not officially supported, or for alerting users to
providers in a "beta" or "untrustworthy" state.
2019-12-06 17:35:41 +10:00
Nyall Dawson
b921e3e299
[processing] Fix menu links following c++ algorithm ports
2019-11-27 09:47:07 +10:00
Nyall Dawson
6b82917715
[processing] Refine behavior of "Use filename as layer name" option to
...
always avoid using temporary file names, and then set this option as
enabled by default.
Also change the setting key so that existing users will also get the new
default value.
Fixes #32591
2019-11-09 20:07:55 +10:00
Alexander Bruy
094359f7b2
[processing] allow to select files without suffix in the Processing
...
options dialog
2019-10-28 11:07:57 +02:00
Juergen E. Fischer
b81d306047
spelling fixes ( closes #32408 )
2019-10-26 10:50:30 +10:00
Nyall Dawson
f32d6fdcf2
[processing] Highlight row_number variable in batch expression editor
2019-09-26 20:46:38 +10:00
Nyall Dawson
cfcf580b61
[processing][needs-docs] Resurrect setting for default raster/vector
...
output format
This setting is still used and required in some circumstances, e.g.
it is used as the default selection in outputs file pickers when
the previously used format is not valid.
2019-09-24 16:50:22 +10:00
Nyall Dawson
08c55780b3
Followup cbc86ffc1ac
...
Fix exceptions, breakage of raster output format handling
2019-09-24 16:49:57 +10:00
Alexander Bruy
0c4f826039
[processing] add missed import
2019-09-20 12:59:33 +03:00
Even Rouault
cbc86ffc1a
Processing: disable 'open output layer' for write-only formats such as PGDUMP (relates to #31421 )
2019-09-16 18:25:16 +02:00
Alessandro Pasotti
04f0879ed5
Processing editing in place: handle constraints
...
Fixes #31634
2019-09-16 10:41:58 +10:00
Nyall Dawson
1537f83614
Fix some algorithms fail to execute correctly in in-place mode
2019-09-06 05:29:08 +10:00
Luigi Pirelli
25ffc9f1c7
Hey! the var is dynamic!
2019-09-04 01:51:53 +10:00
Luigi Pirelli
7eaccc9049
changed to row_number to be consistent with other expression variables
2019-09-04 01:51:53 +10:00
Luigi Pirelli
a4b9ef73fd
Added batch_number variable in algorithm scope to allow use it in the expression editor in Processing batch context
2019-09-04 01:51:53 +10:00
Nyall Dawson
fe8b7c0c95
[processing] Always clear list of previously encountered errors on
...
each new algorithm execution
Avoids the situation where errors reported during an algorithm
which was overall successully executed are append to the errors
for later execution steps
2019-08-08 10:07:27 +10:00
Nyall Dawson
99594147b1
[processing] Fix raster layers are not shown as an option for map layer
...
parameters in batch mode
Fixes #30739
2019-08-07 09:58:46 +10:00
Alexander Bruy
5709f84b2f
[processing] add createByDefault argument to directory output
...
constructor
2019-07-15 08:51:01 +10:00
Nyall Dawson
e0093e1d11
[processing] Don't abort when an algorithm step fails in batch mode
...
Instead, record errors and report them all at the end of the batch
process. If we abort the remaining batch steps when encountering any
error, this blocks a useful use of the batch mode and prevents users
from running a batch process over a large number of input files, some
of which may be invalid.
2019-07-15 06:35:14 +10:00
Nyall Dawson
ec246e3ddb
[processing] Fix batch mode 'fill with parameter values' option for outputs
...
Fixes #30543
2019-07-09 07:20:20 +10:00
Alexander Bruy
49d0e996a7
use correct method name in the batch input selector for vector layers ( fix #30410 )
2019-06-27 12:38:30 +03:00
Fran Raga
aac040534f
issue #30406
2019-06-26 08:59:53 +02:00
Nyall Dawson
4a4b92223b
[processing] Fix exception from field wrappers when "selected features only"
...
is checked for a vector layer
2019-06-25 18:56:51 +10:00
Juergen E. Fischer
72af468228
translation string fixes
2019-06-17 09:40:29 +02:00
Nyall Dawson
fbd243be65
[processing] Port map layer selection combobox widget to c++
...
And:
- fix enable state of selected features only after changing between
map layers with/without selections
- fix state of selected features only when running an algorithm
from the history list, e.g. respect original setting for
selected features only (or not)
- ensure no duplicate changed signals are sent, and correctly
emit changed signals in all applicable circumstances
- handle drag and dropped layers from browser panel (UX fix)
- soak with unit tests
2019-06-15 15:05:48 +10:00
Alexander Bruy
3a0fb544b3
[processing] fix method name
2019-06-13 15:46:26 +03:00
Nyall Dawson
e0eedc5fa1
[processing] Make batch processing HTML report more useful
...
Include the input parameter values in the report, otherwise the
results are just a meaningless list of values which can't be
associated with any particular set of inputs
Also correctly handle boolean and other output types
2019-06-12 07:03:57 +10:00
Harrissou Sant-anna
a749cd9c0c
Add a help button to the Processing History dialog
...
connected to the docs
2019-06-07 07:14:05 +10:00
Juergen E. Fischer
5a54eb7739
processing: add option to select directory to recurse for files (fixes regression with a number of tools that used to have this - eg. buildvrt for instance)
2019-05-31 19:02:48 +02:00
Nyall Dawson
be11896012
Fix exception in BatchAlgorithmDialog
2019-05-31 09:54:30 +10:00
Alexander Bruy
1d1d2ca703
Revert "[processing] populate batch interface with rows when multiple layers"
...
This reverts commits f8890d8f047cd2bb934eaad83e1057814927adb5,
f085f5527658c0a81b9a065a6fcee4d654d16bb6 and 5844a0fc906c744327139e137642f0ec97ae240a
2019-05-30 12:05:52 +03:00
volaya
943b992ed3
[processing] fixed method name in gui wrapper after API renaming
2019-05-26 01:01:09 +02:00
Alexander Bruy
e8a74f4537
[processing][needs-docs] allow to switch from batch dialog to single UI
...
(fix #16893 )
2019-05-24 08:51:34 +10: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
rldhont
943c7d5d90
[Processing] Define boolean output
...
In processing, if an algorithm has a boolean as an output, it cannot be defined as boolean but as a number.
To be more precise in algorithms description, the commit add QgsProcessingOutputBoolean.
2019-05-17 08:21:57 +10:00
Alexander Bruy
5844a0fc90
[processing] allow selecting input from open layers only if input is a
...
layer-type (e.g. raster, vector, mesh). All other inputs can be selected
only from filesystem
2019-05-14 15:36:48 +03:00
Alexander Bruy
f085f55276
rename method so API is compatible with recent changes and other wrappers
2019-05-09 08:14:12 +10:00
Alexander Bruy
f8890d8f04
[processing] populate batch interface with rows when multiple layers
...
selected (fix #21859 )
2019-05-09 08:14:12 +10:00
Nyall Dawson
af6d3d773d
[processing] Fix exception when running batch alg after loading parameters
2019-05-08 20:13:07 +10:00
Nyall Dawson
070de69e30
[processing] Fix incorrect columns hidden when toggling advanced params in batch mode
2019-04-30 14:43:58 +10:00