13217 Commits

Author SHA1 Message Date
Nyall Dawson
05368e4a89 Rename intersect to intersects for consistency with QgsSpatialIndex 2018-07-07 10:54:47 +10:00
Nyall Dawson
9445095a18 Dox++ 2018-07-07 10:54:47 +10:00
Nyall Dawson
ae4e4cd4bb Return full point container for matches, remove redundant point method 2018-07-07 10:54:47 +10:00
Nyall Dawson
66c17880be Modify kdbush to store feature id alonside point, for optimised storage/retrieval 2018-07-07 10:54:47 +10:00
Nyall Dawson
612c9cb047 Use sets for index results 2018-07-07 10:54:47 +10:00
Nyall Dawson
004dc184ce Expand QgsSpatialIndexKDBush API 2018-07-07 10:54:47 +10:00
Nyall Dawson
5c552dd359 QgsSpatialIndexKDBush is implicitly shared for fast copies 2018-07-07 10:54:47 +10:00
Nyall Dawson
0df1056dd4 [FEATURE] QgsSpatialIndexKDBush
A very fast static spatial index for 2D points based on a flat KD-tree,
using https://github.com/mourner/kdbush.hpp

Compared to QgsSpatialIndex, this index:
 - supports single point features only (no multipoints)
 - is static (features cannot be added or removed from the index after construction)
 - is much faster!
 - supports true "distance based" searches, i.e. return all points within a radius
from a search point
2018-07-07 10:54:47 +10:00
Peter Petrik
4f8c9e18ab also use color ramp shader widget for pseudo color renderer (#7358) 2018-07-06 08:23:29 +07:00
Nyall Dawson
a261a668a0 Fix warning 2018-07-06 02:25:08 +10:00
Nyall Dawson
eb53e3b830 Fix failing feature source conformance tests for QgsVectorLayerSelectedFeatureSource
Fixes #19324
2018-07-06 02:25:08 +10:00
Juergen E. Fischer
ef6ce4ec3f db manager: also add newline when adding a unique id field (fixes #19343)
(cherry picked from commit 870d078479352d61edd902ab9d2ca48e98db9148)
2018-07-05 17:45:18 +02:00
Juergen E. Fischer
86c3e8b8a6 fix build crashes with SIP 4.19.11 2018-07-04 23:37:52 +02:00
Alexander Bruy
6d751dcb70
Merge pull request #7363 from alexbruy/fix-sampling
[processing] fix Random extract/select within subset algorithms
2018-07-04 19:53:53 +03:00
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
Alexander Bruy
b72f5d1a53 [processing] log cases when subset is smaller than requested number of
features
2018-07-04 19:15:29 +03:00
Alexander Bruy
29207a1617 [processing] fix Random extract/select within subset when subset is
smaller than number of requested features (fix #19322)
2018-07-04 18:30:30 +03: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