39603 Commits

Author SHA1 Message Date
Nyall Dawson
69af2f51d0 Merge pull request #4773 from DelazJ/typo
Typo fix
2017-06-25 07:09:12 +10:00
Etienne Trimaille
e8ddc48d81 review of the raster metadata viewer (#4726) 2017-06-24 22:04:53 +02:00
Harrissou Sant-anna
7a154061bc Typo fix 2017-06-24 19:25:23 +02:00
Nyall Dawson
471776614c Remove misleading icon from vector split algorithm
The algorithm doesn't split geometries - it seperates features
into different layers without altering the geometry
2017-06-24 14:00:49 +10:00
Nyall Dawson
fbcb97c25a Rename 'delete column' alg to 'Drop field(s)' (for consistency) 2017-06-24 14:00:42 +10:00
Nyall Dawson
e2331c913c Fix error when deleting models 2017-06-24 13:49:19 +10:00
Nyall Dawson
bb73596406 Load other providers before model provider 2017-06-24 13:49:10 +10:00
Nyall Dawson
5822ef9f46 Refresh model algorithms when providers are added
Since algorithms which models are dependent upon may now be
available, we need to rebuild them to ensure that they
will operate correctly.
2017-06-24 13:47:34 +10:00
Nyall Dawson
ab9470dada More .model -> .model3 updates 2017-06-24 13:34:14 +10:00
Nyall Dawson
5e7fbf44be Make QgsAlgorithm::setProvider() public
Turns out there's valid use cases for calling this from outside
code.
2017-06-24 13:33:44 +10:00
Nyall Dawson
b1cadb1822 Use generic algorithm icon for qgis algorithms which do not
have specific icons, instead of generic qgis icon

We consider these 'top level' algorithms, and using the
standard algorithm icon should help reflect this and
differentiate them from 3rd party algorithms.
2017-06-24 12:01:20 +10:00
Nyall Dawson
8f586ef020 Move groups from QGIS (and QGIS native) provider to top level items
in processing toolbox

Helps aid in user discoverability of these algorithms, and
indicates to users that these should generally be the
preferred algorithm choices if duplicates exist from other
providers.
2017-06-24 12:01:16 +10:00
Nyall Dawson
6efa7652ba Merge pull request #4770 from nyalldawson/proc
More processing model porting, better invalid geometry feedback
2017-06-24 10:21:12 +10:00
Nyall Dawson
d667bf595f Move iterator exception handling to c++ 2017-06-24 08:15:06 +10:00
Nyall Dawson
a8b364e2e2 Port another member to c++ 2017-06-24 07:36:46 +10:00
Nyall Dawson
3249015fe1 Fix copy/paste error 2017-06-24 07:36:36 +10:00
Nyall Dawson
ebe0ebdb9c Fix (unwanted) python exception in algorithm test 2017-06-24 07:36:30 +10:00
Nyall Dawson
8e88276ab5 Remove another member from ModelerAlgorithm 2017-06-24 07:36:25 +10:00
Nyall Dawson
10aeba2e72 Move more modelling code to c++ 2017-06-24 07:36:13 +10:00
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
Nathan Woodrow
62f4534388 [MSSQL] Don't MakeValid on geometries
MakeValid can make geometry data we can't read back (e.g
GEOMETRYCOLLECTION) which is worse then
just a user error in the first place.  QGIS has the tools to deal with
this so let it came back to the user to fix
2017-06-23 16:20:30 +10: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
19dd0976d7 Merge pull request #4764 from nyalldawson/processing_exception
Throw c++ exception when a Python exception occurs while running a algorithm
2017-06-23 13:20:01 +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
eb39fb0ebd Add SIP_VIRTUALERRORHANDLER to Doxyfile.in 2017-06-23 12:08:54 +10:00
Nyall Dawson
cbc9e03b9d Consolidate all QgsException subclasses in the same header 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
a4f23fd1a4 Throw QgsProcessingException when a python exception occurs while running an alg 2017-06-23 12:08:54 +10:00
Nyall Dawson
958ca1075c [sipify] Add support for specifying VirtualErrorHandlers to use for a function 2017-06-23 12:08:54 +10:00
Nyall Dawson
d63d560eb3 Add support for VirtualErrorHandlers in core sip
Unfortunately requires a bunch of code to be duplicated from
QgsPythonUtilsImpl::getTraceback() into core.sip, but there's no way
to avoid this
2017-06-23 12:08:54 +10:00
Nyall Dawson
53e7ef88a3 Add a QgsProcessingException exception 2017-06-23 12:08:54 +10:00
Nyall Dawson
2906d1f1c9 Merge pull request #4763 from nyalldawson/algs3
Restore more processing algs
2017-06-23 12:08:15 +10:00
Nathan Woodrow
7ed6c90f51 Code format 2017-06-23 11:01:25 +10:00
Nathan Woodrow
b69861210a [MSSQL] Better fix to removing MZ. Thanks to Nyall ;) 2017-06-23 10:14:33 +10:00
Nathan Woodrow
c793a922e9 [MSSQL] Remove Z/M from WKT type name on insert/update
SQL Server doesn't follow OGC standard of LINESTRINGZ so we have
to remove it. SQL support LINESTRING(x y z) but not LINESTRINGZ(x y z)
2017-06-23 09:20:00 +10:00
Nyall Dawson
f196246852 Merge pull request #4734 from nyalldawson/addfeatures
Add a flag argument to QgsFeatureSink::addFeatures, support fast feature insert
2017-06-23 05:59:21 +10:00
Denis Rouzaud
e40f92cc1b sipify analysis interpolation (#4757) 2017-06-22 20:25:19 +02:00
Radim Blazek
46596914e1 highlight fix 2017-06-22 19:18:19 +02:00
Radim Blazek
5c6e794b2d nearest point measure in identify tool 2017-06-22 15:32:07 +02:00
Martin Dobias
7cd517c6ba [FEATURE] Legend for markers with data-defined size
(Merge pull request #4752 from wonder-sk/legend-data-defined-size)
2017-06-22 15:29:10 +02:00
Martin Dobias
863b7d2b29 Fix the last test image 2017-06-22 14:38:41 +02:00