3331 Commits

Author SHA1 Message Date
Ilya Zverev
80bc6d2674 Update SIP file for QgsRectangle 2017-06-26 16:28:54 +02:00
Matthias Kuhn
1dca3327c1 Merge pull request #4771 from m-kuhn/closest_point
Closest point
2017-06-26 11:44:12 +02:00
Martin Dobias
81653d6978 Data-defined size legend: configurable labels + few fixes
This may break projects that started to use data-defined size legend with manually defined rules.
2017-06-26 11:38:57 +02:00
Matthias Kuhn
a3f14df367 Update docstrings 2017-06-26 08:21:11 +02:00
Matthias Kuhn
13775c2170 More generic closest point on line interpolation 2017-06-26 08:21:11 +02:00
Matthias Kuhn
75e5726fe4 Improve API docstrings 2017-06-26 08:21:11 +02:00
Nyall Dawson
bfb41a1afb Merge pull request #4775 from nyalldawson/named
Allow keyword arguments for all arguments in PyQGIS bindings
2017-06-26 13:07:18 +10:00
Nyall Dawson
3fb1b4809d Export QgsProcessingFeatureSource to Python 2017-06-26 12:44:26 +10:00
Nyall Dawson
89bc84395e Update sip 2017-06-26 12:18:34 +10:00
Nyall Dawson
7ae1ee975d Add sourceName() method to QgsFeatureSource
Sometimes it's necessary to retrieve the name of a source...
2017-06-26 12:15:01 +10:00
Nyall Dawson
2b7b0db747 Allow keyword arguments for all arguments in PyQGIS bindings
Previously this was only enabled for optional arguments (i.e.
those with default values). Enabling them for all arguments
allows for more readable PyQGIS code, and there seems no
downside given that we already have this support partly enabled.

The consequence of this change is that when 3.0 API is frozen
the freeze must also include the naming of function arguments,
since that's effectively now part of public API.
2017-06-25 20:07: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
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
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
24eb6fd780 Fix loss of output names in graphical modeler 2017-06-23 13:32:31 +10:00
Nyall Dawson
5ea07684bd Also call invalidGeometryCallback when skipping features 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
57f2c623ce Move invalid geometry callback from Python to c++ 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
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
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
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
59ca985928 Use white bg color for test images to avoid black background 2017-06-22 12:56:02 +02:00
Martin Dobias
e6863be68e Fix subclassing of QgsDiagramRenderer in Python 2017-06-22 10:58:41 +02:00
Nyall Dawson
76a9844949 Add folder output type 2017-06-22 18:21:33 +10:00
Nyall Dawson
1b696a7f65 Make QgsVectorLayerExporter::flushBuffer public
Sometimes it's necessary to manually call this, instead of
deleting the exporter and letting it be called automatically
There's a chance that features in the buffer will cause errors
while being exported, and if the only way to flush the buffer
is to delete the exporter then there's no way to detect or
retrieve these errors.
2017-06-22 18:19:05 +10:00
Nyall Dawson
f304828f59 Allow storing arbitrary metadata in parameter definitions 2017-06-22 18:18:51 +10:00
Nyall Dawson
1d69939dde Fix build 2017-06-22 06:58:31 +10:00
Nyall Dawson
312c810787 Sipify 2017-06-22 06:49:43 +10:00
Nyall Dawson
86f33c682d Expand model unit test coverage 2017-06-22 06:49:09 +10:00
Nyall Dawson
780f4331cc Add method to generate temporary destination parameter value 2017-06-22 06:49:09 +10:00
Nyall Dawson
a87ca09e34 Move some temp file/folder utils to c++ 2017-06-22 06:48:25 +10:00
Nyall Dawson
1df9f6b6f0 Start on executing models 2017-06-22 06:47:11 +10:00
Nyall Dawson
fe0f2498d4 Fix generation of destination parameters for models 2017-06-22 06:45:21 +10:00
Nyall Dawson
b01cae0740 Merge pull request #4761 from nyalldawson/algs2
Port more processing algs to new API
2017-06-22 06:40:32 +10:00
Sandro Santilli
57bf9daaac Document semantic of SegmentationToleranceType
.. and default of QgsCircularString::curveToLine

[ci skip]
2017-06-21 18:35:32 +02:00
Radim Blazek
a2e010c31e param description fix 2017-06-21 17:02:35 +02:00
Radim Blazek
fb6f181fa8 support copy vector layer to browser postgres/spatialite by drag and drop 2017-06-21 15:12:24 +02:00
Nyall Dawson
c685ec2b30 Add missing tests for vector input parameter, add vector out parameter 2017-06-21 22:13:36 +10:00
Nyall Dawson
0da3652257 Rename some parameter classes for consistency 2017-06-21 22:13:16 +10:00
Martin Dobias
0bd29c3f98 Fix build problems 2017-06-20 15:50:00 +02:00
Denis Rouzaud
009e47e369 fix tests 2017-06-20 15:36:04 +02:00
Denis Rouzaud
eddd258725 sipify core composer part 4 2017-06-20 15:36:04 +02:00
Denis Rouzaud
c9a75090bc sipify core composer part 3 2017-06-20 15:36:04 +02:00