63 Commits

Author SHA1 Message Date
Alexander Bruy
3d4a59bb8b [processing] cleanup files from unused code and remove some files 2017-11-28 12:27:45 +02:00
Alexander Bruy
0059b2b692 [processing] remove Python 2 compatibility layer 2017-11-28 12:27:45 +02: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
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
797437823c [processing] Fix cannot resize columns in batch dialog
Fixes #17227
2017-11-10 11:25:11 +10: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
Nyall Dawson
54124bd0aa Restore batch algorithm mode following new processing API 2017-06-13 12:32:30 +10:00
Nyall Dawson
189f804714 Adapt more code to c++ API 2017-06-06 07:41:19 +10:00
Nyall Dawson
ef59d0c454 Port parameter checking to c++ 2017-06-06 07:41:19 +10:00
Nyall Dawson
fb811766f8 Add framework for algorithm outputs
This somewhat changes the meaning of outputs from processing 2.x.
In 2.x processing outputs were used both as a method of specifying
inputs to algorithms (file paths to destination layers created
by the algorithm) AND pure outputs (such as statistics calculated
by the algorithm).

This is now split. The old input-type-outputs (destination layers)
are now input parameters (since the parameter value IS an input to the
algorithm). To differentiate them from parameters indicating pure
input layers a new "isDestination()" method was added to
QgsProcessingParameterDefinition.

Output definitions are now purely indications of values CREATED
by the algorithms. Suitable candidates are the existing calculated
stats and actual file path/URI of any layers created by the algorithm.
Moving forward we should ensure all algorithms output as much
useful information as possible - e.g. number of features processed,
number of skipped features, count null geometries encountered, etc...
2017-06-06 07:41:19 +10:00
Nyall Dawson
03e40f7497 [processing] Remove all remaining algorithm copies
Algorithms are no longer copied - just a single const instance
of each algorithm is used
2017-06-06 07:41:19 +10:00
Nyall Dawson
b64a71df61 Port algorithm countVisibleParameters to c++ 2017-06-06 07:41:19 +10:00
Nyall Dawson
ae97c333d6 Revert "Port algorithm countVisibleParameters to c++"
This reverts commit c3c694f8ccfbe0b64df14365f950f5895968a66a.
2017-05-15 10:24:38 +10:00
Nyall Dawson
c3c694f8cc Port algorithm countVisibleParameters to c++ 2017-05-15 08:44:28 +10:00
Alexander Bruy
6fe459de14 [processing] remove extra quotes when restoring batch process from file
(fix #16309)
2017-05-13 11:14:17 +03:00
Juergen E. Fischer
c77172ed3d fix more flake8 warnings 2017-03-05 10:21:24 +01:00
Juergen E. Fischer
f00a87cb8a update translation strings 2017-03-05 10:21:24 +01:00
arnaud.morvan@camptocamp.com
c43b04ffff Fix modeler and batch file dialog 2017-02-09 11:05:09 +01:00
Nyall Dawson
04eb293362 [processing] Move some SVG icons out of plugin to themes
...and swap to using QgsApplication methods for retrieving cached icons,
implement svgIconPath for providers with SVG icons
2017-01-11 10:55:16 +10:00
nirvn
00ee2ad989 [processing] vectorize and improve menu icons (fixes #14474) 2016-12-31 11:59:46 +07:00
arnaud.morvan@camptocamp.com
322a565b8b [processing] Remove ParameterGeometryPredicate 2016-12-12 15:21:16 +01:00
Nyall Dawson
9cd29f39d8 [processing] Fix batch panel under Qt5 2016-11-03 16:33:09 +10:00
arnaud.morvan@camptocamp.com
4184934b9a [processing] Apply 2to3 on changes 2016-10-05 12:39:01 +02:00
Alexander Bruy
3407ced90e fix indentation
Conflicts:
	python/plugins/processing/gui/BatchInputSelectionPanel.py
	python/plugins/processing/gui/wrappers.py
2016-10-05 12:38:50 +02:00
arnaud.morvan@camptocamp.com
c010a035c3 Call postInitialise in BatchAlgorithmDialog 2016-10-05 12:38:46 +02:00
volaya
5464c4501b [processing] use QgsMessage bar in algorithm dialogs 2016-10-05 12:38:30 +02:00
volaya
c491c01266 [processing] changes to allow custom parameter dialog adapt to new parameter architecture 2016-10-05 12:38:21 +02:00
volaya
efd73a491f [processing] fixes for new parameters architecture
includes better managing of crd and extent parameters in models, not requiring now the use of modeler-only lags
2016-10-05 12:35:00 +02:00
volaya
b298c76ee4 [processing] implemented parameter widget wrappers
Conflicts:
	python/plugins/processing/core/GeoAlgorithm.py
	python/plugins/processing/gui/ExtentSelectionPanel.py
	python/plugins/processing/modeler/ModelerParametersDialog.py
2016-10-05 12:34:58 +02:00
arnaud.morvan@camptocamp.com
fbab369c0d Use boolean wrapper in batch algorithm dialog
Conflicts:
	python/plugins/processing/gui/BatchPanel.py
2016-10-05 12:34:53 +02:00
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
volaya
8de9757f54 Merge pull request #3456 from arnaud-morvan/processing_apply_use_coverge_on_execution
[Processing] Calculate min coverage on execution
2016-09-05 09:03:06 +02:00
Nyall Dawson
eba6101357 Fix broken python save/open dialogs under PyQt5
Will break stuff under PyQt4... oh well, better stuff working on Qt5
then Qt4
2016-09-05 11:41:49 +10:00
arnaud.morvan@camptocamp.com
c369710667 Calculate min coverage on execution 2016-09-04 17:58:17 +02:00
arnaud.morvan@camptocamp.com
f0413e36d6 Do not set "None" value in batch panel string widgets 2016-08-23 17:52:10 +02:00
Juergen E. Fischer
797826ea5b spelling fixes 2016-05-31 03:36:27 +02:00
Matthias Kuhn
abfd7740bd Fix qgis.PyQt compatibility imports 2016-04-29 14:10:41 +02:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
Juergen E. Fischer
2526d3e3c8 processing: switch to pyqt wrappers, flake8 fixes 2016-03-21 17:00:25 +01:00
Juergen E. Fischer
c6d921729e python fixes:
* issues identified by pyflakes (star and unused imports)
* pyqtwrapper: add QtSvg
* some exceptions e.message => unicode(e)
* some translations tr("..." % foo) => tr("...") % foo
* TODO:
  python/console/console_sci.py:547 QsciScintillaCompat?
  python/plugins/db_manager/dlg_query_builder.py:304 pop_up_error?
2016-03-15 17:25:23 +01:00
volaya
b3b41015a1 Merge pull request #2804 from Gustry/processing-error
[Bugfix] [Processing] Catch some python errors in batch mode
2016-03-03 13:15:30 +01:00
Alexander Bruy
58d40d16fa [processing] add ParameterPoint for selecting point on canvas (fix #5733) 2016-02-29 12:41:26 +02:00
Etienne Trimaille
da65e54c5d catch some python error in batch processing 2016-02-17 11:53:36 +01:00
Nyall Dawson
7e90d5773f Whitespace fix 2016-01-19 08:42:02 +11:00
volaya
71b7ea9f93 [processing] allow saving and loading batch processing configurations 2016-01-15 11:27:39 +01:00
Juergen E. Fischer
b39055b39c indentation update (now including autopep8) 2015-08-22 14:29:41 +02:00
Matthias Kuhn
9fc1b48bf3 Replace str() with unicode() and some PEP 8 2015-08-16 20:58:43 +02:00