312 Commits

Author SHA1 Message Date
Alexander Bruy
1a46ddbf28 [processing][API] rename runalg() and runandload() to improve
readability
2017-03-22 19:17:12 +02:00
Alexander Bruy
c1e6ba0f40 [processing] rename AlgorithmExecutor's runalg() and runalgIterating()
to avoid overlapping with general functions and improve readability
2017-03-22 19:11:36 +02:00
Alexander Bruy
79566f7649 remove unused method 2017-03-22 17:03:51 +02:00
Alexander Bruy
3e4fb56eea [processing][API] rename alghelp to algorithmHelp 2017-03-22 15:25:12 +02:00
Matteo Ghetta
3bcf287a7e Processing tests (#4259)
* [processing] qgis regular points test

* [processing] qgis shape buffer variable tests

* [processing] qgis create grid lines test

* [processing] qgis convert geometry test

* [processing] qgis extract by location test

* [processing] qgis add field test

* [processing] trying to fix travis failing

* [processing] trying to fix travis failing/2

* trying to fix travis failing/3

* [processing] Add new default option "ProjectCrs" to ParameterCrs

* [processing] RegularPoints tests shouldn't rely on iface

* [processing] Fix regular points test

* [processing] RandmPointsExtent new CRS parameter

* [processing] qgis random point in extent test

* [processing] qgis random point in extent test/2

* [processing] remove qgis random point in extent test

* no output random points in extent test

* remove useless output
2017-03-16 16:42:53 +01: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
Juergen E. Fischer
ecc5bb508e pep8/pyflakes3 cleanups 2017-03-04 02:38:15 +01:00
Juergen E. Fischer
a10c890383 More QgsSettings updates:
* revives WMS
* QgsSettings::clear() added
* section added to QgsSettings::contains()
* type parameter added to sip binding of QgsSettings.value()
* TODO: customization & evis
2017-03-04 02:37:59 +01:00
volaya
51da47d61c [processing] fixed update of toolbox after editing script providers 2017-03-02 13:44:31 +01:00
Alexander Bruy
5fa0713747 [processing] convert results viewer to dock 2017-02-16 13:16:12 +02:00
volaya
cdb35d6288 Merge pull request #4119 from arnaud-morvan/processing_postgis_wrappers
[processing] Add PostGIS widget wrappers
2017-02-16 11:12:30 +01:00
Nyall Dawson
3ecafb3472 [processing] Allow extent parameters to avoid matching layer CRS check 2017-02-14 05:49:23 +10:00
arnaud.morvan@camptocamp.com
482aadc495 [processing] Add possibility to pass additionnal parameters to widget wrapper 2017-02-09 16:12:16 +01:00
volaya
6002ca749f [processing] removed providers imports 2017-01-30 10:56:51 +01:00
rldhont
c861682ded [BUGFIX][Processing] Script: get output file extension 2017-01-26 16:53:44 +01:00
Juergen E. Fischer
89b58d7334 translation string fixes 2017-01-25 02:19:33 +01:00
Alexander Bruy
08e0eacfef [processing] return string from selection type setting when necessary 2017-01-18 08:46:56 +02:00
Alexander Bruy
49b6c5f342 [processing] more fixes to "selection" type settings handling 2017-01-13 16:43:16 +02:00
Alexander Bruy
3605d4fce3 Revert "[processing] handle string settings from previous install (followup 03eaad5bfd)"
This reverts commit daf65d8fdf3f8eb238c07f682c4d9a508e613f7a.
2017-01-13 16:38:30 +02:00
Alexander Bruy
daf65d8fdf [processing] handle string settings from previous install (followup 03eaad5bfd) 2017-01-13 15:50:38 +02:00
Alexander Bruy
b6632b0731 [processing] workaround for fixing broken build 2017-01-12 14:49:26 +02:00
Alexander Bruy
03eaad5bfd [processing] fix handling of the "selection" type settings 2017-01-12 12:52:04 +02:00
Alexander Bruy
80d0d05b18 [FEATURE][processing] remove TauDEM provider from core Processing
TauDEM is quite specific set of tools and it requires installation of
some additional tools. So we decide to turn it into separate provider,
reducing core codebase size and maintenance efforts.

Tagged as feature to not forget mention in changelog and documentation
2017-01-11 15:15:37 +02:00
Denis Rouzaud
748be8de71 [spelling] replace behaviour by behavior 2017-01-11 11:35:19 +01:00
Nyall Dawson
86e1138a04 [processing] Correctly handle when no feedback object is passed 2017-01-11 11:11:11 +10: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
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
Nyall Dawson
dca697b427 [processing] New c++ QgsProcessingRegistry class
Intended as a registry for the various processing components,
including providers, algorithms and various parameters and outputs.

Currently handles only registration of providers, as a step toward
removing processing's algList (this requires first porting
the algorithm class to c++)

A QgsProcessingRegistry instance is attached to QgsApplication,
and is retrieved by QgsApplication::processingRegistry()
2017-01-11 10:55:15 +10:00
Nyall Dawson
bb24dfe245 [processing] c++ base class for providers
Nothing particularly exciting here yet, but this commit
moves the definition of the provider base class to a c++
QgsProcessingProvider abstract base class.

As part of this some existing python methods were renamed
to make their use clearer and to fit with the QGIS c++
api conventions:

- getName was renamed to id
- getDescription was renamed to name
- getIcon was renamed to icon

These API breaks are documented
2017-01-11 10:55:15 +10:00
Alexander Bruy
3a03c98a08 [processing] configurable URL for scripts and models repository 2017-01-10 14:17:25 +02:00
volaya
e8c149ed42 [processing] added ‘invalid feature handling’ option 2017-01-09 15:13:47 +02:00
Martin Dobias
63d1cfddc8 Fix QgsExpressionContextUtils::projectScope() usage in processing 2017-01-06 11:34:55 +08:00
Alexander Bruy
12ab928e4b Merge pull request #3918 from alexbruy/processing-providers
Processing providers updates
2017-01-05 11:02:19 +02:00
nirvn
3dcf487485 [processing] fix app freeze when closing options dialog (fixes #15550) 2017-01-03 14:03:19 +07:00
Alexander Bruy
ce9c08f3f6 [processing] rename GdalOgr provider to Gdal provider
Show version numbers in providers descriptions
2016-12-31 09:09:07 +02:00
nirvn
00ee2ad989 [processing] vectorize and improve menu icons (fixes #14474) 2016-12-31 11:59:46 +07:00
Alexander Bruy
69e9d99c49 [processing] fix GRASS provider (follow up a1642a37) 2016-12-29 14:09:02 +02:00
DelazJ
828e447991 More spelling fixes
* editation
* definintion
* Unabled
* capitalize QGIS
* replace algs by algorithms
* queryings
* symbo(s)
* missing space after a dot
2016-12-29 01:53:55 +01:00
Matthias Kuhn
3fba3ac775 [processing] Quote and escape script exported ParameterString 2016-12-22 11:26:28 +01:00
Matthias Kuhn
55e3ea033a [processing] Fix some script parameter export/import issues 2016-12-22 11:21:32 +01:00
Matthias Kuhn
0a686c4fca [processing] Make ParameterFixedTable scriptable 2016-12-21 14:21:36 +01:00
Matthias Kuhn
2af00beddc [processing] Don't hide errors when resolving script paramters 2016-12-21 13:17:31 +01:00
Alexander Bruy
97780b6be6 [processing] fix incorrect parameter construction 2016-12-20 14:41:58 +02:00
volaya
0035c97f5b Merge pull request #3725 from arnaud-morvan/processing_geometry_predicate
[processing] Remove parameter geometry predicate
2016-12-13 15:58:16 +01:00
volaya
170a94680d [processing] removed grass6 provider 2016-12-13 15:55:21 +02:00
arnaud.morvan@camptocamp.com
322a565b8b [processing] Remove ParameterGeometryPredicate 2016-12-12 15:21:16 +01:00
arnaud.morvan@camptocamp.com
65a4e97a75 [processing] Support options as (value, text) in ParameterSelection 2016-12-12 15:12:55 +01:00
Nyall Dawson
bef5b5ed68 [processing][heatmap] custom parameter/widget for output resolution
Matches current behaviour of c++ heatmap plugin
2016-12-07 12:23:58 +10:00
volaya
420b7ec902 [processing] removed incompatible basestring check 2016-12-01 14:37:36 +01:00