Nyall Dawson
6c014b46ba
[processing] Use c++ recent algorithm log, remove python log
...
Indirectly fixes #19218
2018-07-05 02:37:03 +10:00
Nyall Dawson
d232cde514
[processing] Move recent algorithm log to c++ class
2018-07-05 02:37:03 +10:00
Nyall Dawson
2695e00042
Add a context getter to QgsCoordinateTransform
2018-07-04 13:23:07 +10:00
Matthias Kuhn
b66a6430be
Merge pull request #7344 from m-kuhn/console_no_immediate_print
...
Make console printing safe again
2018-07-03 12:58:08 -05:00
Nyall Dawson
f43adf7a8b
Fix test
2018-07-03 09:43:40 +10:00
Nyall Dawson
2cc9bc8f73
[processing] Fix unexpected newlines showing in python command in history dialog
2018-07-03 09:43:40 +10:00
Nyall Dawson
1621402652
[processing] Fix exception when clicking alg with distance param in history dialog
2018-07-03 09:43:40 +10:00
Matthias Kuhn
ae192e8624
Make console printing safe
...
References #8343 https://issues.qgis.org/issues/8343
2018-07-02 18:35:24 -05:00
Matthias Kuhn
7e7faadabf
Merge pull request #7343 from m-kuhn/qgsfunction_handlesnull
...
Add handlesnull parameter to @qgsfunction
2018-07-02 15:19:06 -05:00
Hugo Mercier
b6901e286c
Merge pull request #7336 from mhugo/rulebasedlabeling_fix
...
Fix for rule based labeling toSld()
2018-07-02 13:27:24 +02:00
Matthias Kuhn
a1b6a2cb7f
Fix docs
2018-07-02 06:16:49 -05:00
Hugo Mercier
b37a215451
Make qgis_sip_uptodate happy
2018-07-02 11:00:43 +02:00
nirvn
5b655b3548
[dbmanager] remove button text if toolbar is vertical
2018-07-02 12:51:44 +07:00
nirvn
d8ca89452d
[dbmanager] improve import dialog UI
2018-07-02 12:51:44 +07:00
nirvn
48d897f91a
[dbmanager] rename tree label to providers for clarity
2018-07-02 12:51:44 +07:00
nirvn
7e8ec00c9b
[dbmanager] vectorize icons to fix toolbar in hidpi context
2018-07-02 12:51:44 +07:00
nirvn
7cb80a2308
Rename mActionDraw.svg to more appropriate mActionRefresh.svg
...
(in doing so, rename current mActionRefresh.svg to mActionReload.svg)
2018-07-02 12:51:44 +07:00
Juergen E. Fischer
ac63b8e16e
Translation fix
2018-07-02 02:47:09 +02:00
Juergen E. Fischer
5f88ba4cfd
db manager: fix syntax error in oracle plugin
2018-07-01 21:41:27 +02:00
Matthias Kuhn
45fdd0fb31
Add documentation for @qgsfunction
2018-07-01 06:31:26 -05:00
Matthias Kuhn
60730abba7
Add missing import
2018-06-30 09:40:13 -05:00
Matthias Kuhn
773138cf57
Add handlesnull parameter to @qgsfunction
...
Up to date it was not possible to create a function that handles NULL values with the
@qgsfunction decorator. As soon as any parameter was NULL, the return value would also
be NULL.
Example of a function that returns a value now with a NULL paramter and would have returned NULL before
```
@qgsfunction(args=-1, group='Custom', handlesnull=True)
def mean_value(vals, feature, parent):
valid_vals = [val for val in vals if val != NULL]
return sum(valid_vals)/len(valid_vals)
```
[FEATURE]
2018-06-30 09:40:13 -05:00
nirvn
b315fbce8d
[spatialite provider][dbmanager] hide a few more tables
2018-06-30 15:43:31 +07:00
nirvn
af322fbd63
[dbmanager] hide more spatialite tables by default
2018-06-30 15:43:31 +07:00
nirvn
570f3c86c3
[dbmanager] rename QGIS layers to Project layers for the virtual layer connection
2018-06-30 15:43:31 +07:00
nirvn
86547eb5fc
[dbmanager] add connection icon
...
this harmonizes display with that of the browser panel
2018-06-30 15:43:31 +07:00
Nyall Dawson
9d8202b66a
[dbmanager] Fix exception on older Qt builds
...
Fixes #19309
2018-06-30 18:35:38 +10:00
Håvard Tveite
a756fb1034
Fix parameter type for the BUFFER parameter of the Voronoi polygons alg
...
Fixes #19294
2018-06-29 23:02:03 +10:00
Martin Dobias
569db8e069
Merge pull request #7045 from PeterPetrik/qgs-quick-position_and_transformer
...
[feature] [qgsquick] Add PositionKit, PositionMarker and CoordinateTransformer
2018-06-29 09:08:35 +02:00
nirvn
46246f622d
[needs-docs][dbmanager] harmonize icons
2018-06-29 11:56:37 +07:00
Nyall Dawson
36cfaac8af
Even more descriptive error
2018-06-29 10:46:09 +10:00
Marco Bernasocchi
96764beff2
more informative error message
2018-06-29 10:46:09 +10:00
Nyall Dawson
dbac3b4922
[python] Block imports of PyQt4 modules
...
Prevents crashes when PyQt4 modules are imported in QGIS 3.x.
This instantly segfaults QGIS. Throwing an exception makes it
easier to identify the cause as a faulty plugin, and shows
exactly where the bad import is located.
2018-06-29 10:46:09 +10:00
Nyall Dawson
9fe26af8fa
Allow processing tests to specify ellipsoid/project CRS
2018-06-29 07:12:48 +10:00
Nyall Dawson
34b9d39b27
[FEATURE][processing] K Means clustering algorithm
...
Adds a native k-means clustering algorithm.
Based on a port of PostGIS' ST_ClusterKMeans function, this
new algorithm adds a new cluster ID field to a set of input
features identify the feature's cluster based on the k-means
clustering approach. If non-point geometries are used as input,
the clustering is based off the centroid of the input geometries.
2018-06-29 07:12:48 +10:00
Denis Rouzaud
4d0d19b0f7
fix build without gui but with bindings
...
console and plugin installed are gui components
2018-06-28 21:55:38 +02:00
Juergen E. Fischer
212cffcab1
Port gps support to QSerialPort (byebye QExtSerialPort)
2018-06-28 17:31:01 +02:00
Martin Dobias
97addfc2cc
Merge pull request #7313 from PeterPetrik/mesh_layer_styling_gui
...
[mesh] [feature] App widgets for styling mesh layers
2018-06-28 15:17:14 +02:00
Martin Dobias
4c8b801791
Make sure that bool(obj) is True for QGIS API objects
...
bool(obj) in Python has the following semantics:
1. if the object has __bool__() method, return its value
2. if the object has __len__() method, return its value
3. return True
So for objects in QGIS API that implement __len__() method, we were getting
unexpected behavior - for example, "if layer: ..." would evaluate as False
in case the layer was empty, while the usual expectation is that any reference
to an object that is not None should evaluate to True.
2018-06-28 11:04:50 +02:00
Peter Petrik
7bfcaf4db9
remove need for factory for system of measurement
2018-06-28 10:41:13 +02:00
Mathieu Pellerin
fb9e575252
[FEATURE] map canvas @canvas_cursor_point variable ( #7225 )
2018-06-28 14:18:54 +07:00
Nyall Dawson
85fba799ea
[processing] Don't abort when missing field name specified in
...
delete columns algorithm
Fixes #19256
2018-06-28 17:10:23 +10:00
Nyall Dawson
6f5405a829
[processing] Be more careful with output geometries added as a
...
result of clipping
2018-06-28 17:09:51 +10:00
Nyall Dawson
31330ddffb
[processing] Fix random selection algorithm when filter is set on layer
2018-06-28 15:02:06 +10:00
Nyall Dawson
977e14b058
[processing] Fix potential crash when calling processing.run with
...
custom context, but no feedback object
2018-06-28 14:12:37 +10:00
Nyall Dawson
73eb7628d8
Style
2018-06-28 11:26:53 +10:00
Juergen E. Fischer
d0e94728d8
fix build with sip 4.18.1 (eg. ubuntu artful)
2018-06-27 23:30:04 +02:00
Juergen E. Fischer
1904a431be
fix typo
2018-06-27 18:16:42 +02:00
Matthias Kuhn
d7b85c69f8
Merge pull request #7016 from m-kuhn/featureSourceEmpty
...
QgsFeatureSource::empty() method
2018-06-26 13:01:08 +02:00
Peter Petrik
252e41d3dc
fix travis issues: docs, sip, test
2018-06-26 11:07:45 +02:00