860 Commits

Author SHA1 Message Date
Nyall Dawson
b97c6a8d88 Use native file picker for spatialite export option also 2017-11-22 05:26:34 +10:00
Nyall Dawson
31086d3ac5 [processing] Move destination encoding option to separate menu action
...instead of embedding in output destination file selector. Otherwise
Qt downgrades the file picker to the Qt basic file picker, instead of
the native OS file picker. Which is a huge downgrade and barely
functional for users.

Also remember last selected file format
2017-11-21 21:24:18 +10:00
Matthias Kuhn
06bae21d51
Merge pull request #5579 from DelazJ/logmessages
Clarify where and what Log Messages is
2017-11-20 15:54:29 +01:00
Nyall Dawson
d0c2a41c6c Fix error when running postgis algs 2017-11-16 13:38:42 +10:00
Nyall Dawson
fb205b1aec
Merge pull request #5589 from nyalldawson/remote_proc_exp
[processing] Remove expression buttons from parameters outside modeler
2017-11-11 07:00:16 +11:00
Nyall Dawson
2ed2248827 [processing] Add option whether to load batch output layers on completion
By always trying to load all layers, we severely limit the usefulness
of batch processing. E.g. try clipping 200 layers - and then
get ready to punch something as you wait for all the results to load.
2017-11-10 17:00:24 +10:00
Nyall Dawson
3fc90301a9 [processing] Only load layers when absolutely required
This change avoids holding onto resources and layers from earlier iterations,
and allows batch processing of many more items then is possible
if we hold on to these layers
2017-11-10 17:00:24 +10:00
Alexander Bruy
30cefca19e
Merge pull request #5593 from nyalldawson/batch_rows
[processing] Change min rows in batch processing to 1
2017-11-10 08:35:00 +02:00
Nyall Dawson
bd9945ffe3 [processing] Change min rows in batch processing to 1
While no-one is likely to use the batch dialog to run a single
operation, it's a bit unexpected to see two empty rows, which
can't be removed, when first opening this dialog
2017-11-10 13:48:54 +10:00
Nyall Dawson
feacb76300 Fix python error 2017-11-10 13:43:50 +10:00
Nyall Dawson
08b189df89 Fix error when double clicking destination param in batch dialog 2017-11-10 13:40:50 +10:00
Nyall Dawson
feb66d2cd8 Fix saving/load batch processing models 2017-11-10 13:22:49 +10:00
Nyall Dawson
8526a2dd3f Remember last used folder for processing batch save/load
Fixes #16310
2017-11-10 13:17:01 +10:00
Nyall Dawson
9bac962a9e Fix batch processing progress bar never hits 100%, also fix fragile
cursor handling
2017-11-10 11:33:58 +10:00
Nyall Dawson
797437823c [processing] Fix cannot resize columns in batch dialog
Fixes #17227
2017-11-10 11:25:11 +10:00
Nyall Dawson
a23f315f39 Fix duplicate 'all files' entry in batch input file selection dialog 2017-11-10 11:23:19 +10:00
Nyall Dawson
612f51601a [processing] Remove expression buttons from parameters outside modeler
Since these expressions were only evaluated immediately, it led to
confusing behavior for users who were expecting that the expression
would be applied per-feature.

Given that expressions can be directly entered into spin boxes, we already
have a way of users evaluating simple calculations for numeric
parameters at least.

I don't think there's a strong enough use case for needing to
calculate string results to leave the confusing expression builder
option in place.

This should be re-evaluated when we add UI support for dynamic
parameters (which are already supported in the backend), where
expressions are evaluated per-feature.

Fixes #17267
2017-11-10 10:42:25 +10:00
Harrissou Sant-anna
c18bd1fa63 Clarify where and what Log Messages is 2017-11-09 23:47:31 +01:00
Nyall Dawson
cab807dc30
Merge pull request #5426 from medspx/ProcessingPortGrass72
[Processing] Port GRASS 7.2 algorithm provider
2017-11-09 06:42:38 +10:00
Nyall Dawson
4e3b082594 Restrict available formats when running algorithms to those supported
by the provider
2017-11-06 12:58:30 +10:00
Médéric RIBREUX
d10aaf4bd4 Support multiple output file raster formats:
* A new createopt textbox has been added to the parameters dialog for algorithms which exports to raster files.
* A new metaopt textbox has also been added to the Algorithm parameters dialog.
* Raster file format is detected from output filename extension.
* GdalUtils has been improved to correctly detect raster formats supported for creation.
* QFileDialog for output rasters now display only file filters for supported output raster file formats.
2017-11-05 13:18:24 +01:00
Médéric RIBREUX
aa17df1a55 * Add new GRASS 7.2 algorithms.
* Fix ParameterRange GUI.
* Fix Multiple values Enum support.
2017-11-04 18:34:25 +01:00
Médéric RIBREUX
4b8b6a09c8 Massive conversion 2017-11-04 15:31:21 +01:00
Harrissou Sant-anna
f5025cc668 Use a more appropriate dialog title for message boxes
and capitalise first letters
2017-10-27 01:43:26 +02:00
Etienne Trimaille
386eef2e6c new string concatenation algorithm in processing 2017-10-25 08:17:59 +11:00
Nyall Dawson
4ce166241e Allow processing providers to specify a long name, and show it in tooltips
Add version number to gdal provider long name
2017-10-19 13:12:31 +10:00
Nyall Dawson
a33376fe09 Drop version and count from algorithm item in tree view 2017-10-19 12:01:40 +10:00
Nyall Dawson
925ec6098c [processing] Always list native algorithms before 3rd party providers
This change ensures that searching for algorithms always returns
native algorithms before matching 3rd party algorithms

TODO: we really need to replace the toolbox tree with a proper
model and redo the sorting/filtering using a sort/filter proxy
model.
2017-10-19 12:01:40 +10:00
volaya
fe780afc81 [processing] allow reordering in multiple selection dialog 2017-10-18 16:20:47 +02:00
Nyall Dawson
5b1afd86bc "Loosen" up acceptable parameter for model child inputs
Previously we took a harsher approach to filtering which inputs
were acceptable for child algorithm parameters. E.g. a child algorithm
with a vector layer input would only show outputs from other algorithms
which generated a vector layer output.

But this can needlessly restrict what's possible in models. E.g.
an algorithm which outputs a QgsProcessingOutputFile or
QgsProcessingOutputString could potentially be a valid source
to a vector layer. So we should allow these as possible
inputs for vector layer parameters too.

This commit adds many extra acceptable input types for
child parameters. It will probably expose "corner cases" where
algorithms may get unexpected input types, but these will
not affect existing model stability and can be fixed when
identified.

The payoff is a much more flexible modeler.
2017-10-17 08:55:27 +10:00
Alexander Bruy
c53ff66caf fix permissions 2017-10-11 17:06:11 +03:00
Alexander Bruy
14a48c0349 Merge pull request #5201 from nyalldawson/point_crs
[processing] Transparently handle CRS for point parameters
2017-09-25 09:47:46 +03:00
Nyall Dawson
b0f27c532c Merge pull request #5245 from nyalldawson/conditionalHelpLink
Set the most accurate User Manual page to Options tabs
2017-09-25 09:22:12 +10:00
Nyall Dawson
99def105bb Correct link for processing options help 2017-09-25 08:34:22 +10:00
Nyall Dawson
83a8a8d730 Use text encoded versions of points and extents in history panel
Fixes generation of unit tests with point/extent parameters
2017-09-24 13:46:01 +10:00
Nyall Dawson
6898342c08 Better cursor for point picker tool 2017-09-24 12:09:38 +10:00
Nyall Dawson
506f6d40b7 [processing] Fix picking point from map always triggers a release
event for previous map tool
2017-09-24 12:09:38 +10:00
Nyall Dawson
6efcc2fe86 Transparently reproject source points in algs 2017-09-24 12:09:38 +10:00
Nyall Dawson
8902d5f48f Merge pull request #5244 from nyalldawson/proc_misc
[processing] Misc test related fixes
2017-09-24 10:37:06 +10:00
Nyall Dawson
db04d65593 Use processing config help key 2017-09-24 08:30:28 +10:00
Alexander Bruy
afac940d37 [processing] add band parameter support in test generator 2017-09-24 07:50:05 +10:00
Nyall Dawson
34a8c8aab8 Fix exception when running alg with no parameters from toolbox 2017-09-24 07:46:35 +10:00
Nyall Dawson
b39459b8ff Matching default multiple fields should also be case-insensitive 2017-09-22 12:02:48 +10:00
Nyall Dawson
c5b9fa23cd Formatting 2017-09-22 10:56:32 +10:00
Nyall Dawson
94530a9efc Allow setting default value for field parameters in models 2017-09-22 10:50:46 +10:00
nirvn
938f261596 [processing] fix map layer combo box layer reference 2017-09-18 13:37:49 +07:00
Nyall Dawson
95ab2321e5 Add context menu with Select All/Clear Selection to checkboxes panel 2017-09-16 09:59:13 +10:00
Nyall Dawson
4bae647ad9 Use smaller margins for checkboxes panel 2017-09-16 09:59:13 +10:00
arnaud.morvan@camptocamp.com
534fe21f51 [processing] Add useCheckBoxes option to SelectionWidgetWrapper
This allow to show checkboxes or radioboxes intead of line edit with button.
This is configurable for each algorithm thought ParameterSelection metadata parameter.
It is also possible to choose the number of columns.
This is not applied in case of the BatchDialog.
2017-09-16 09:57:13 +10:00
Nyall Dawson
f282a753c6 [processing] Fix incorrect filters in vector layer parameter selections 2017-09-15 19:41:19 +10:00