80 Commits

Author SHA1 Message Date
volaya
dfb4cdd34b [processing] moved output value evaluation to output object itself 2016-10-05 12:38:20 +02:00
volaya
e353d226a8 [processing] evaluate parameters before executing algorithm
This allows a better use of expressions
2016-10-05 12:35:02 +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
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
arnaud.morvan@camptocamp.com
c369710667 Calculate min coverage on execution 2016-09-04 17:58:17 +02:00
Alexander Bruy
acdde31b3d [processing] more cleanups (follow up 06c4b07222) 2016-08-05 15:05:36 +03:00
Matthias Kuhn
bb79d13e82 Remove deprecated Qgis::WKBType and API cleanup (#3325)
* Remove deprecated Qgis::WKBType and API cleanup

Renames QgsWKBTypes to QgsWkbTypes

Replaces usage of the enums:

* Qgis::WKBType with QgsWkbTypes::Type
* Qgis::GeometryType with QgsWkbTypes::GeometryType

Their values should be forward compatible (a fact that was already
explited up to now by casting between the types)

Renames some SSLxxx to SslXxx and URIxxx to UriXxx

* Fix build warnings and simplify type handling

* Add a fixer to rewrite imports

* The forgotten rebase conflictThe forgotten rebase conflicts

* QgsDataSourcURI > QgsDataSourceUri

* QgsWKBTypes > QgsWkbTypes

* Qgis.WKBGeom > QgsWkbTypes.Geom

* Further python fixes

* Guess what... Qgis::wkbDimensions != QgsWkbTypes::wkbDimensions

* Fix tests

* Python 3 updates

* [travis] pull request caching cannot be disabled

so at least use it in r/w mode

* Fix python3 print in plugins
2016-08-04 09:10:08 +02:00
volaya
e6b76c4d7b [processing] cleaning and restructuring
This fixes some design errors (mainly the ModelerUtils class, which is not needed anymore to hold a copy of algs and providers in order to avoid circular dependencies) and removes unused code
2016-05-23 19:34:25 +02:00
volaya
a19741b297 [processing] log errors in hook scripts 2016-05-19 13:45:18 +02:00
arnaud.morvan@camptocamp.com
fc5f70c6f5 Processing - Support tables with no geometry in OutputVector 2016-05-17 14:16:15 +02:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
rldhont
e765bb6dd1 [Processing] Fix when iface is None 2016-04-20 14:52:46 +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
01cc455d2d [processing tests] Improve test debug messages 2016-03-15 11:08:46 +01:00
Matthias Kuhn
e6785ba513 Be more verbose on exceptions in geoalgorithms 2016-03-10 12:14:29 +01:00
Matthias Kuhn
61366583b1 [processing] Fix default argument is SilentProgress for GeoAlgorithm.execute() 2016-03-10 12:14:28 +01:00
Matthias Kuhn
b956886e81 [processing] Initialize icons before first usage 2016-02-04 13:35:16 +01:00
Alexander Bruy
908a380241 [processing] fix deprecation warnings 2016-01-20 16:39:13 +02:00
volaya
931ca4d6d6 [processing] indentation fixes 2016-01-08 12:52:19 +01:00
Alexander Bruy
4137437f2c PEP8 fixes 2016-01-08 10:32:43 +02:00
volaya
62302377db [processing] UI/UX improvements
Related to QEP #19

Some algorithm description provided by Frank Sokolic
2016-01-08 08:27:22 +01:00
volaya
8d8fac46e7 [processing] do not format errors before sending to log 2015-11-06 11:36:25 +01:00
Juergen E. Fischer
ca697dbaf2 [processing] update algorithm help link (fixes #13506) 2015-10-06 00:20:30 +02:00
volaya
56af1068db [processing] recover previous value of formula in modeler calculator
#fixes 11539
2015-09-30 10:11:46 +02:00
volaya
216e461246 [processing] correctly build multiple input value string
It was wrongly using comma instead of semicolon to separate values

Fixes #13114
2015-09-24 13:10:43 +02: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
Juergen E. Fischer
66a3d02240 integrate processing into update_ts.sh (also includes all translations
in the repository and none outside of it).
2015-07-26 04:28:37 +02:00
Etienne Trimaille
e751592a4d small python change 2015-07-09 14:41:00 +02:00
volaya
2083d6db25 [processing] allow using layer names as input values 2015-07-03 08:18:57 +02:00
volaya
83f3a5893c [processing] added check to ensure input layers are valid 2015-06-23 09:07:52 +02:00
volaya
92cf321d13 [processing] wait until file conversion is finished 2015-06-22 09:11:00 +02:00
volaya
83782cc4c8 [processing] fixed conversion to unsupported raster formats after running algorithm 2015-06-22 07:44:21 +02:00
volaya
7a35d62b09 [processing] add help links for gdal/ogr alga 2015-05-21 15:44:00 +02:00
volaya
f1dc58ce01 [processing] fixed saga help links 2015-05-21 15:44:00 +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
f3f09fa500 [processing] i18n support in gdal provider 2015-01-17 11:24:54 +02:00
Alexander Bruy
b774853a4e remove debug code 2014-12-07 12:59:11 +02:00
Alexander Bruy
fc6ad27db8 [processing] load documentation from online QGIS User Guide 2014-12-07 12:52:30 +02:00
volaya
9f8a742352 [processing] patch for issues with delimited text layers
Still won't work when using delimited text layers in parameters of type MultipleInput
2014-11-21 16:45:51 +01:00
volaya
c2e30b3c03 [processing]removed debug print lines 2014-10-06 07:35:22 +02:00
Alexander Bruy
650cd8f3e3 fix typos in strings 2014-10-04 14:09:47 +03:00
Alexander Bruy
bd13693ae3 [processing] make bunch of strings translatable (sorry translators) 2014-10-04 11:36:39 +03:00
Alexander Bruy
f935316882 [processing] add full i18n support (still needs some work to mark all
strings as translatable)
2014-10-04 11:36:38 +03:00
volaya
b114085257 [processing] fixed crs checking before running alg 2014-10-04 10:21:30 +02:00
volaya
dab96382e6 [processing] allow definition of vector fields with plain names and types 2014-08-14 10:58:51 +02:00
Alexander Bruy
24e89a4712 [processing] don't warn about different CRS's if algorithm has only one
input (fix #10964)
2014-08-06 15:57:16 +03:00