52 Commits

Author SHA1 Message Date
Denis Rouzaud
3dc3d9d1b2 unite QgsMessageLog::Level and QgsMessageBar::MessageLevel in Qgis::MessageLevel
make enum items lower case
remove unused QgsMessageLog::None and All
2018-02-06 08:56:40 -04:00
volaya
0858652e84 [Processing] correctly report missing layers in postprocessing task 2017-12-13 14:39:10 +01: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
9bac962a9e Fix batch processing progress bar never hits 100%, also fix fragile
cursor handling
2017-11-10 11:33:58 +10:00
Harrissou Sant-anna
c18bd1fa63 Clarify where and what Log Messages is 2017-11-09 23:47:31 +01:00
Nyall Dawson
f1ac0be867 Fix processing setting to use filename as layer name 2017-08-19 00:56:18 +10:00
Nyall Dawson
7879c0a20b Fix processing rendering styles for output dialog, functionality 2017-08-19 00:47:21 +10:00
Nyall Dawson
bdc5e224a3 Small cleanups 2017-06-20 14:45:13 +10:00
Nyall Dawson
b9e0b46f9f Fix running algorithms in iterating mode 2017-06-12 13:35:31 +10:00
Nyall Dawson
aa544a14c0 Only use a temporary feedback object when running algorithms
Otherwise canceling a run causes all future runs to be canceled
2017-06-12 07:26:02 +10:00
Nyall Dawson
607fed8c48 Restore ability to save outputs directly to Spatialite/PostGIS providers 2017-06-06 10:34:57 +10:00
Nyall Dawson
81da209bf5 Use a QgsProject pointer instead of bool loadIntoProject
Allows potential future use case of loading results into
a different open project
2017-06-06 08:40:23 +10:00
Nyall Dawson
46596c50f2 Restore correct layer naming when loading results 2017-06-06 07:41:20 +10:00
Nyall Dawson
5b9d925c70 Fix loading of results after running algorithms 2017-06-06 07:41:20 +10:00
Nyall Dawson
189f804714 Adapt more code to c++ API 2017-06-06 07:41:19 +10:00
Nyall Dawson
c1d9d57dd2 First working pure c++ algorithms 2017-06-06 07:41:19 +10:00
Alexander Bruy
dc5ba8ffe9 [processing] explisitly load outputs as raster or vector depending
on the output type. Don't rely on extension or other indirect attributes
2017-05-26 13:30:23 +03:00
Nyall Dawson
6aa10c6817 [processing] Cleanup some layer/writer related handling
Ensure that layers created by QgsProcessingUtils::createFeatureSink
can always be retrieved using QgsProcessingUtils::mapLayerFromString
2017-05-09 15:29:41 +10:00
Nyall Dawson
fd2c18ee16 Refactor processing writer to use QgsFeatureSink, and to store
temporary output layers in the provided processing context

Should fix loss of intermediate memory layers when running
a multi-step model
2017-04-26 17:38:40 +10:00
Nyall Dawson
e9f13d1ea3 Just use standard QgsMessageLog functionality instead of a dedicated
method for processing
2017-04-26 13:57:06 +10:00
Nyall Dawson
1394c28d13 [processing] Move some log handling to c++ class 2017-04-26 13:56:29 +10:00
Nyall Dawson
2a1a71574a Move algorithm id (previously commandLineName) to QgsProcessingAlgorithm 2017-04-07 13:21:28 +10:00
Nyall Dawson
faa8a653b2 Move algorithm icon handling to QgsProcessingAlgorithm 2017-04-03 21:17:45 +10:00
Juergen E. Fischer
c77172ed3d fix more flake8 warnings 2017-03-05 10:21:24 +01:00
Alexander Bruy
e77ccba1ae remove old code 2017-02-16 13:16:20 +02:00
Alexander Bruy
5fa0713747 [processing] convert results viewer to dock 2017-02-16 13:16:12 +02:00
Alexander Bruy
75a7637838 [processing] fix typo in method name 2017-01-12 12:54:13 +02:00
Nyall Dawson
ede452be85 [processing] Port feedback object to c++
Algorithms are now passed a QgsProcessingFeedback object
instead of the loosely defined progress parameter.
2017-01-11 11:11:10 +10:00
Martin Dobias
d56a97d4fe Merge QgsMapLayerRegistry into QgsProject
All methods/signals of QgsMapLayerRegistry moved verbatim to QgsProject.
2016-12-10 15:18:12 +08:00
Nyall Dawson
6c6f3c1e34 Remove deprecated members from QgsMapLayer 2016-07-15 06:02:45 +10: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
Matthias Kuhn
61366583b1 [processing] Fix default argument is SilentProgress for GeoAlgorithm.execute() 2016-03-10 12:14:28 +01:00
volaya
f3cd3ee7ef [processing] add log error message when error occurs in postprocessing task 2015-11-08 22:16:32 +01:00
volaya
7e79398601 [processing] fixed adding raster layer to project
fixes #13791
2015-11-08 17:55:25 +01:00
volaya
b05fb0b5b0 [processing] better naming for output memory and postgis layers 2015-11-06 11:36:28 +01:00
volaya
11b5092140 [processing] allow output directly on PostGIS tables 2015-11-06 11:36:27 +01:00
Juergen E. Fischer
e694474f62 indentation update 2015-10-03 21:42:13 +02:00
volaya
67d70f8572 [processing] Fix multiple error dialogs in batch processes
Errors when postprocessing layers are now added to the log console
2015-09-29 20:24:03 +02:00
Juergen E. Fischer
b39055b39c indentation update (now including autopep8) 2015-08-22 14:29:41 +02:00
volaya
70023dbd2f [processing] do not close window after executing algorithm if there are problems 2015-05-20 21:11:41 +02:00
volaya
5a00912b3d [processing] more friendly error message when layers not created
This commit includes changes to the log system as well, which now logs only algorithms. Messages are logged to the QGIS logging system
2015-05-20 21:11:41 +02:00
Juergen E. Fischer
956c155e8f fix python pep8 warnings and fix some revealed errors
pep8 --ignore=E111,E128,E201,E202,E203,E211,E221,E222,E225,E226,E227,E231,E241,E261,E265,E272,E302,E303,E501,E701 \
     --exclude="ui_*.py,debian/*,python/ext-libs/*" \
     .
2015-02-01 20:46:47 +01:00
Alexander Bruy
6ff487702d [processing] replace two similar dialogs with generic one 2014-11-17 20:03:29 +02:00
Alexander Bruy
bd13693ae3 [processing] make bunch of strings translatable (sorry translators) 2014-10-04 11:36:39 +03:00
volaya
6486594f57 [Processing] Refactoring of parameters and outputs
It also adds some changes in the core and tools package, to provide a cleaner structure
2014-07-14 14:47:05 +02:00
Victor Olaya
0009040ed5 [processing] made postprocessing code more pythonic 2014-06-10 22:39:07 +02:00
Alexander Bruy
498a5d9ab8 [processing] code formatting, make sources more pep8 compliant 2013-10-02 16:24:10 +03:00
Victor Olaya
54a960f9ec [processing] some code cleaning 2013-09-21 12:48:23 +02:00