4418 Commits

Author SHA1 Message Date
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
Denis Rouzaud
37ebcdd1cd [spellcheck] allow inwords checks and line skipping
spell check will be done automatically in words by default (when some conditions are fulfilled)
possibility to avoid in words checking by adding :* at the end in spelling.dat

one can add #spellok at the end of a line of code to skip spell check on this line
2017-01-10 20:18:37 +01:00
Alexander Bruy
1ad965b4fa [processing] add test for Distance matrix algorithm to prevent
TableWriter class breakage in future
2017-01-10 20:24:05 +02:00
Alexander Bruy
c4cc954141 [processing] restore functionality of the TableWriter class (fix #16053) 2017-01-10 20:23:05 +02:00
Alexander Bruy
3145a01db6 [processing] support OTB 5.8.0 2017-01-10 16:52:05 +02:00
Alexander Bruy
9909109928 Merge pull request #3973 from ghtmtt/good_test2
[processing] other gdal tests
2017-01-10 16:32:17 +02:00
Alexander Bruy
3a03c98a08 [processing] configurable URL for scripts and models repository 2017-01-10 14:17:25 +02:00
Alexander Bruy
d2ff57ec38 remove debug line 2017-01-10 12:02:36 +02:00
volaya
8ea5bc39b4 Merge pull request #3971 from alexbruy/processing-help
[processing] configurable help files location for GDAL and GRASS providers
2017-01-10 09:55:58 +01:00
volaya
3fd27d1f04 Merge pull request #3926 from alexbruy/processing-gdal-opts
Processing gdal opts
2017-01-10 09:52:58 +01:00
matteo
eb826fb058 gdal TPI test 2017-01-10 09:30:08 +01:00
matteo
1f645c1996 gdal near black test 2017-01-10 09:30:08 +01:00
matteo
ad11ec4b7f gdal TRI test 2017-01-10 09:30:08 +01:00
matteo
64f2b660fd gdal roughness test 2017-01-10 09:30:08 +01:00
Juergen E. Fischer
378212cf42 indentation update 2017-01-10 09:05:42 +01:00
Nyall Dawson
990c7cd5cb Fix test 2017-01-10 08:46:42 +10:00
Nyall Dawson
4d51e1d1a1 Revert "[processing] added test for invalid geometry checking"
This reverts commit 306764871baab544f9566b327d2188a5b1fc8938.

Test is failing
2017-01-10 08:22:48 +10:00
volaya
1500eadd2c [processing] fixed usage of filter function in vector.features 2017-01-09 18:25:29 +01:00
volaya
d35830b97e added missing test files 2017-01-09 18:25:05 +01:00
Alexander Bruy
7cda002ba2 [processing] configurable help files location for GDAL and GRASS providers 2017-01-09 16:31:13 +02:00
Alexander Bruy
37725379f2 add missed import 2017-01-09 15:34:42 +02:00
volaya
306764871b [processing] added test for invalid geometry checking 2017-01-09 15:13:47 +02:00
volaya
7b68c77f4c [processing] removed unnecessary code to check validity of geometries 2017-01-09 15:13:47 +02:00
volaya
e8c149ed42 [processing] added ‘invalid feature handling’ option 2017-01-09 15:13:47 +02:00
Nyall Dawson
0f42ea781a [processing] Don't use separate label for checkbox parameters
Instead embed description as checkbox label.
2017-01-09 16:52:46 +10:00
Alexander Bruy
29d108f38f [processing] allow raster options widget accept string parameters and outputs in modeler 2017-01-07 14:37:58 +02:00
Alexander Bruy
f9680ddc0c [processing] use custom options widget in GDAL algorithms 2017-01-07 10:02:13 +02:00
Martin Dobias
63d1cfddc8 Fix QgsExpressionContextUtils::projectScope() usage in processing 2017-01-06 11:34:55 +08:00
Nyall Dawson
e5e0ec51eb [FEATURE][processing] New algorithm to truncate tables
Irretrievably deletes all features from a table... use with caution!
2017-01-06 10:32:52 +10:00
Nyall Dawson
bce716c8b1 [processing] Allow selection of non-spatial tables for create attribute index alg 2017-01-06 10:32:52 +10:00
Nyall Dawson
e7e9ba0efc [processing] Add test, help for create spatial index alg 2017-01-06 10:32:52 +10:00
Nyall Dawson
7a7f11980e [processing] Allow tests for algs which modify layers in place
Add test for Create Attribute Index algorithm
2017-01-06 08:54:04 +10:00
Alexander Bruy
12ab928e4b Merge pull request #3918 from alexbruy/processing-providers
Processing providers updates
2017-01-05 11:02:19 +02:00
volaya
8a166324dc Merge pull request #3943 from Gustry/saga_path
skip if the SAGA folder is not defined
2017-01-04 10:14:24 +01:00
Mathieu Pellerin
9908d9cf81 [processing] fix modeler output values in case algorithm(s)
execution modifies those (fixes #16021)
2017-01-04 15:18:17 +07:00
Nyall Dawson
ff1bbfbdd4 [processing] Adjust margins, frame style in modeller to match main window style 2017-01-04 08:22:04 +10:00
Nyall Dawson
0bdc99000c Cosmetic improvements to procesing modeller
- always use a 1px outline around items, regardless of zoom
- don't change text color for selected items (too hard to read),
instead change outline/box color
2017-01-04 07:50:33 +10:00
Etienne Trimaille
d9d5bf7c28 skip if the SAGA folder is not defined 2017-01-03 17:55:27 +01:00
Alexander Bruy
a643f4b4a6 Merge pull request #3941 from nirvn/processing_options_freeze
[processing] fix app freeze when closing options dialog (fixes #15550)
2017-01-03 10:37:33 +02:00
nirvn
3dcf487485 [processing] fix app freeze when closing options dialog (fixes #15550) 2017-01-03 14:03:19 +07:00
Mathieu Pellerin
56d5a375a1 [FEATURE] Zoom in/out and fit items to view actions for the modeler (#3939) 2017-01-03 12:15:03 +07:00
nirvn
f54476cdda [FEATURE] Export processing models as PDF/SVG 2017-01-02 11:47:54 +07:00
nirvn
4603eb0f3d [processing] update color scheme and position of modeler elements 2017-01-02 09:30:17 +07:00
nirvn
d01e3feafc [processing] convert modeler icons to pictures to kill pixels when zoomed 2017-01-02 08:47:11 +07:00
Nyall Dawson
a4838e1a95 [processing] Don't abort heatmap if adding single feature fails 2017-01-02 10:05:33 +10:00
Alexander Bruy
c5835e9adc [processing] fix test and menus after renaming GdalOgr provider 2016-12-31 09:09:07 +02: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
248e7d1d5e Followup 8849e94: add missing svg file 2016-12-31 12:03:40 +07:00