3183 Commits

Author SHA1 Message Date
Nyall Dawson
e7f13f5bd8 Port model help code to c++ 2017-06-24 07:36:07 +10:00
Nyall Dawson
9c47e1b148 Fix errors when edit model help 2017-06-24 07:35:56 +10:00
Mathieu Pellerin
b7e66b4f72 [processing] restore simplify geometries & smooth algorithms (#4766) 2017-06-23 14:46:40 +07:00
Nyall Dawson
81855a715b Use FastInsert when adding features from processing 2017-06-23 14:34:38 +10:00
Nyall Dawson
99cfb8faf3 Fix processing algs crash when no source features exist
Instead we output an empty layer - this may be critical for
multi-step models where there is validly no features present
in a source layer
2017-06-23 13:49:32 +10:00
Nyall Dawson
24eb6fd780 Fix loss of output names in graphical modeler 2017-06-23 13:32:31 +10:00
Nyall Dawson
c3e24b76b5 Fix some processing tests where output is not generated or should
not be compared
2017-06-23 12:48:58 +10:00
Nyall Dawson
5ea07684bd Also call invalidGeometryCallback when skipping features 2017-06-23 12:08:54 +10:00
Nyall Dawson
a8cdde5232 Add test that python exception is caught when executing an alg 2017-06-23 12:08:54 +10:00
Nyall Dawson
4ea85362f4 Transform errors encountered while iterating features in
processing are non-fatal. We report them to users, and treat the
feature as having no geometry, but don't stop execution.
2017-06-23 12:08:54 +10:00
Nyall Dawson
57f2c623ce Move invalid geometry callback from Python to c++ 2017-06-23 12:08:54 +10:00
Nyall Dawson
98617c90bd Report errors when executing algs within dialogs 2017-06-23 12:08:54 +10:00
Nyall Dawson
93b7c2809e Report success or failure after running algs
And auto catch python exceptions and report failure of model
2017-06-23 12:08:54 +10:00
Nyall Dawson
531e1a3282 Update tests 2017-06-22 18:53:36 +10:00
Nyall Dawson
3232ef9678 Restore random extract + Random Extract within subsets algs 2017-06-22 18:23:38 +10:00
Nyall Dawson
45eac05a25 Restore vector split algorithm 2017-06-22 18:23:07 +10:00
Nyall Dawson
9d8118c995 Fix dest selection panel when used in folder mode
Also fix some UX issues with the panel in folder, such as
correctly remembering/restoring last used folders, defaulting
to home dir, don't clear value when canceling while browsing
2017-06-22 18:21:51 +10:00
Nyall Dawson
76a9844949 Add folder output type 2017-06-22 18:21:33 +10:00
Nyall Dawson
6be4875a82 Restore symmetrical difference alg 2017-06-22 18:21:16 +10:00
Nyall Dawson
66d1a588ae Restore regular points alg 2017-06-22 18:20:56 +10:00
Nyall Dawson
c33f94002d Restore Postgis Execute SQL alg 2017-06-22 18:20:36 +10:00
Nyall Dawson
38f1d9c7e6 Restore import into postgis algorithm 2017-06-22 18:20:14 +10:00
Nyall Dawson
22246dc332 Upgrade postgis widget wrappers to new API 2017-06-22 18:19:50 +10:00
Nyall Dawson
8af308d277 Fix creation of widget wrappers via metadata parameters 2017-06-22 18:19:26 +10:00
Nyall Dawson
33aa798c2a Make 'merge' algorithm store the original layer name and source 2017-06-22 18:18:22 +10:00
Nyall Dawson
00ead638ee Cleanup alg imports 2017-06-22 18:17:56 +10:00
Nyall Dawson
432dd9dd90 Remove deprecated algorithms
Removed:
- Basic Stats for Numbers/String algs (replaced by generic
Basic Stats alg)
- Split Lines with Lines (replaced by generic Split with lines)
- Vector Grid Lines/Polygons (replaced by other create grid
algs)
2017-06-22 18:16:52 +10:00
Nyall Dawson
2d3d9b4ce7 Remove python algs where a native alg exists
Removed python algs are:
- Centroids
- Clip
- Dissolve
- Extract by attribute
- Extract by expression
- Multipart to singlepart
- Polygon centroids
- Reproject layer
2017-06-22 18:16:02 +10:00
Nyall Dawson
db00cb1cdb Resurrect a processing test 2017-06-22 18:15:38 +10:00
Nyall Dawson
df07772a56 Fix error when adding parameter 2017-06-22 12:21:25 +10:00
Nyall Dawson
a87ca09e34 Move some temp file/folder utils to c++ 2017-06-22 06:48:25 +10:00
Nyall Dawson
e8a03b918b Move default file extension code to c++ 2017-06-22 06:48:25 +10:00
Nyall Dawson
d1ed7d158e Steps towards executing models 2017-06-22 06:47:11 +10:00
Nyall Dawson
1df9f6b6f0 Start on executing models 2017-06-22 06:47:11 +10:00
Nyall Dawson
c36169a0ba Fix some errors in graphical modeler 2017-06-22 06:45:21 +10:00
Nyall Dawson
a65e171298 Fix test 2017-06-22 05:18:16 +10:00
Nyall Dawson
ce42d6c41b Reduce noise in algorithm tests 2017-06-22 05:16:01 +10:00
Nyall Dawson
a9f97fc478 Port create attribute index alg to new api 2017-06-21 22:22:37 +10:00
Nyall Dawson
0da3652257 Rename some parameter classes for consistency 2017-06-21 22:13:16 +10:00
Nyall Dawson
aa96e78682 Native extract by expression and attribute algs 2017-06-21 22:12:19 +10:00
Nyall Dawson
31167718cf Resurrect some processing algs, port multipart to singlepart to c++ 2017-06-21 22:11:42 +10:00
Nyall Dawson
d3a2f7cd65 Models can now be saved and restored 2017-06-20 19:23:21 +10:00
Nyall Dawson
9a2f14b931 First steps to model/save restore in c++
Models now save to QVariantMap, using QgsXmlUtils to save to
an xml based format (with extension .model3)
2017-06-20 17:26:57 +10:00
Nyall Dawson
179a377da0 Port more model to c++ 2017-06-20 15:31:53 +10:00
Nyall Dawson
459244126f Indentation 2017-06-20 14:45:13 +10:00
Nyall Dawson
1a4a654f8b Port more model API across to c++ 2017-06-20 14:45:13 +10:00
Nyall Dawson
f6358b2118 Begin port of modeler algorithm to c++ 2017-06-20 14:45:13 +10:00
Nyall Dawson
efe8bba006 Work on resurrecting modeler 2017-06-20 14:45:13 +10:00
Nyall Dawson
5d8f2d99ab Fix working with inputs in modeler 2017-06-20 14:45:13 +10:00
Nyall Dawson
bdc5e224a3 Small cleanups 2017-06-20 14:45:13 +10:00