5103 Commits

Author SHA1 Message Date
Nyall Dawson
952b494256 Show Python identifier for processing parameters in tooltip
over widgets

Hopefully helps Python processing users match the parameters
in the gui to the parameter names to use when calling via
API

(Blender style!)
2017-08-07 17:24:22 +10:00
Nyall Dawson
b0cac0bd04 Remove debugging code 2017-08-07 17:13:07 +10:00
Nyall Dawson
d6e2985c08 Fix invalid icon sizes in processing model builder
While the toolbar buttons were shown in the correct size, the
actual icon image in the buttons was not correctly scaling to
match the button size.

Hardcoding the svg icons in the py file seems to be the only
way to avoid this.
2017-08-07 05:24:12 +10:00
Nyall Dawson
cad54f2cea Fix incorrect icon sizes in Python console
Console was not respecting application icon size setting
2017-08-07 05:24:12 +10:00
Juergen E. Fischer
487a7a00b7 fix 'allows to/allows one to' spell errors and enhance to our spellchecker to deal with those 2017-08-06 17:34:22 +02:00
Nyall Dawson
7f5b4dbc18 Followup 6ed389c8, fix push direct to master ;) 2017-08-06 16:34:49 +10:00
Juergen E. Fischer
6ed389c8e8 fix translation string again and improve translation scripts (followup 79a095cb) 2017-08-05 23:01:42 +02:00
Nyall Dawson
a5ddab6cc8 Merge pull request #4950 from nyalldawson/algs
Port some more algs to new API
2017-08-06 05:05:32 +10:00
Nyall Dawson
470afbebbe Use correct file filters for processing vector/raster input selectors 2017-08-05 23:19:03 +10:00
Nyall Dawson
d4ad063f45 Allow specifying a 'primary key' field when comparing layers for
processing tests

Some algorithms will return results in different orders, e.g.
due to the use of dicts or other methods which do not guarantee
a fixed return order.

Using a primary key to do the feature match allows us to flexibly
handle these situations and provide tests for these algorithms.
2017-08-05 22:10:18 +10:00
Nyall Dawson
6aa672d9e0 Fix typo in gridify alg 2017-08-05 17:51:38 +10:00
Nyall Dawson
b93be39c24 Port Stats by Category to new API
Improvements:
- keep original field type and name for category field
- add unit test
2017-08-05 17:51:38 +10:00
Nyall Dawson
adda744576 Port Join Attributes alg to new API
Improvements:
- don't fetch unused geometry for joined table
2017-08-05 17:51:38 +10:00
Nyall Dawson
572dadab01 Remember window geometry in multi input dialogs 2017-08-05 17:51:38 +10:00
Nyall Dawson
a1f487d679 Add alternate reference layer for points to path algorithm 2017-08-05 17:51:38 +10:00
Nyall Dawson
c2559d8273 Add second reference layer for topocolor algorithm 2017-08-05 17:51:38 +10:00
Nyall Dawson
9968962ab9 Allow specifying multiple possible vector layer results for processing
tests

Some algorithms are non-deterministic and the results may vary from
run to run. In this case we allow specifying multiple possible valid
results, and the test will pass if the result layer matches any of these.
2017-08-05 17:51:38 +10:00
Nyall Dawson
5d635d190d Allow list of acceptable raster hashes for processing algorithm tests
Differences in gdal libraries mean the hash value may differ between
platforms. Allow multiple acceptable hashes to be listed for
expected test results
2017-08-05 17:51:38 +10:00
Nyall Dawson
03bae593bb Port Eliminate Selection to new API 2017-08-05 17:51:38 +10:00
Nyall Dawson
7132faa974 Port Topocolor algorithm to new API 2017-08-05 17:51:38 +10:00
Nyall Dawson
ec4df6c019 Port points to path to new API
Improvements:
- Maintain Z/M values
- Keep original data type for group/order fields
- Group field is optional
- Added unit tests
- Don't export text files for features by default
2017-08-05 17:51:38 +10:00
Nyall Dawson
b4b39996d2 Port hub lines algorithm to new API
Improvements:
- transparent reprojection to match hub/spoke CRS
- keep all attributes from matched hub/spoke features
- don't break after matching one hub point to spoke - instead
join ALL hub/spoke points with matching id values
2017-08-05 17:51:38 +10:00
Nyall Dawson
e0354456e3 Port Hub Distance (lines) to new API
Improvements:
 - handle different CRS between points and hubs
 - add unit test
2017-08-05 17:51:38 +10:00
Nyall Dawson
fc1746e770 Port Hub Distance (points) to new API
Improvements:
- handle different CRS between points and hubs
- add unit test
2017-08-05 17:51:38 +10:00
Nyall Dawson
0930e18bf9 Add tests for gridify 2017-08-05 17:51:38 +10:00
Nyall Dawson
591de92b07 Port gridify to new API 2017-08-05 17:51:38 +10:00
Nyall Dawson
54be720485 Port grid lines to new API 2017-08-05 17:51:38 +10:00
Nyall Dawson
7ab82444f1 Port random selection algorithms to new API
And heavily optimise random selection within subsets alg
2017-08-05 17:51:38 +10:00
Nyall Dawson
a64d199e6f [processing] If an error occurs while running an algorith, always
keep the algorithm dialog open after execution

Otherwise it's hard to see the error - you have to know to check
the python log. Keeping the dialog open at the log makes the
error immediately visible to the user
2017-08-05 17:51:38 +10:00
arnaud.morvan@camptocamp.com
40ccd3bcb3 [processing] Correctly delete processing dialogs
del only delete the python variable, not the dialog which is owned by the main window.
2017-08-05 09:31:40 +02:00
Nyall Dawson
bf7abdea76 Followup 69a25d 2017-08-05 06:53:19 +10:00
Nyall Dawson
79a095cb69 Revert "translation string fix"
Causes 'AlgorithmDialog' object has no attribute 'trUtf8' error when
trying to launch processing algorithms
2017-08-05 06:50:52 +10:00
Nyall Dawson
69a25d0f43 Add initial test suite for processing algorithm dialog 2017-08-05 06:48:23 +10:00
Juergen E. Fischer
cfaa8f0c8c translation string fix 2017-08-04 18:11:52 +02:00
Alexander Bruy
9fe326dee2 [processing] more consistent naming for class members, setters and
getters
2017-08-04 13:21:26 +03:00
Alexander Bruy
7c706d23ce [processing] adapt algorithms to use new band parameter 2017-08-04 11:36:41 +03:00
Alexander Bruy
49bfe69823 [processing] add parameter representing raster band 2017-08-04 11:27:35 +03:00
Alexander Bruy
27f4d42b23 [processing] remove unused code 2017-08-01 14:52:25 +03:00
Alexander Bruy
14435907f6 [processing] adopt algs to use new API call to retrieve GDAL driver 2017-08-01 14:52:25 +03:00
Alexander Bruy
fef93fc751 [processing] limit pixel size values 2017-08-01 14:52:25 +03:00
Alexander Bruy
1f276a12bf [processing] port raster layer statistics 2017-08-01 14:52:25 +03:00
Alexander Bruy
fa0bb2e6dc [processing] improve Create constant raster algorithm 2017-08-01 14:52:25 +03:00
Matthias Kuhn
1da9c607c9
[MetaSearch] Make dialog element size dynamic 2017-07-31 10:09:03 +02:00
Matthias Kuhn
3dc6daaffa
Fix typo 2017-07-31 09:35:28 +02:00
Matthias Kuhn
b262604f7a
Add missing import 2017-07-30 22:42:57 +02:00
Matthias Kuhn
3ce6fcd31d
Even more endless hourglass avoidance 2017-07-30 22:36:51 +02:00
Matthias Kuhn
8473df562f
More endless hourglass protection 2017-07-30 22:18:25 +02:00
Matthias Kuhn
4b6b8434f4
Avoid endless wait cursors in console 2017-07-30 21:53:41 +02:00
Matthias Kuhn
973d3515d1
Avoid endless wait cursors 2017-07-30 21:51:22 +02:00
Nyall Dawson
e8290928dd Port Variable distance buffer to new API
Improvements:
- add cap style/join style/ miter limit setting from fixed distance buffer
2017-07-28 14:10:48 +10:00