7016 Commits

Author SHA1 Message Date
Alessandro Pasotti
62111b9993 Fix test 2019-02-13 18:28:46 +01:00
Alessandro Pasotti
dabd649a6d
Merge pull request #9164 from elpaso/bugfix-21227-layer-rename-styles
Fix GPKG layer rename styles in browser
2019-02-13 16:24:50 +01:00
Nyall Dawson
fc8fd1e26b [processing] When converting models to python, correctly use a
multi-step feedback object to give scripts accurate progress reports

And also add in checks for cancelation between child algorithm
execution to allow generated scripts to early exit
2019-02-13 19:17:30 +10:00
Nyall Dawson
29fa7b6e7b Fix build, indentation 2019-02-13 07:59:30 +10:00
Nyall Dawson
6648a955bc Fix test 2019-02-13 07:59:30 +10:00
Nyall Dawson
69f45e389c Refactor QgsExpressionContext and move QgsExpressionContextUtils
out to its own header

Avoids slow recompilation caused by changes to the frequently
modified QgsExpressionContextUtils class
2019-02-13 07:59:30 +10:00
Nyall Dawson
d281c8aef5 Fix build 2019-02-13 07:59:30 +10:00
Nyall Dawson
e533a4078c [processing] Expose some model related variables to expressions
run inside models

Allows expressions to access important variables like the current
model path
2019-02-13 07:59:30 +10:00
Martin Dobias
6fab904cc9 Fix tests due to updated tolerance 2019-02-12 22:09:23 +01:00
Alessandro Pasotti
61d361d674 GPKG: Rename styles when layers are renamed
Partially fixes #21227

TODO:

- DB manager
- Other providers
2019-02-12 19:37:01 +01:00
Alessandro Pasotti
287a3b0ebc Renamed test db for consistency
(minor change)
2019-02-12 18:25:43 +01:00
Nyall Dawson
2e20f13279 Fix fragile test 2019-02-12 16:48:44 +10:00
Nyall Dawson
2729af65c3 [processing] Port expression widget wrapper to new API
Fixes confusing expression parameter definitions in modeler
child algorithms (there's no direction as to what the
widget should be) and ensures that the correct expression
context is revealed to the widget when in all modes.
2019-02-12 07:18:02 +10:00
Nyall Dawson
6f6d562ec8 Fix QgsFieldExpressionWidget doesn't correctly emit signals when
clearing the current expression/field
2019-02-12 07:18:02 +10:00
Nyall Dawson
d3bd1370d6 [processing] Fix incorrect parameter definition used when evaluating
parent layer parameter in the gui for dynamic properties data defined
buttons
2019-02-12 07:18:02 +10:00
Luigi Pirelli
2a917f4c10
Merge pull request #9049 from luipir/rasterSLD_export
Add SLD 1.0 export for rasters
2019-02-11 22:04:30 +01:00
Alessandro Pasotti
e6cce107ae
Merge pull request #9139 from elpaso/bugfix-21176-spatialite-text-pk
Fix spatialite text PKs
2019-02-10 10:00:15 +01:00
Nyall Dawson
78a6b4ff3d Fix build 2019-02-09 07:27:39 +10:00
Nyall Dawson
324fb40500 QgsFileWidget should also accept dropped plain text paths 2019-02-09 07:27:39 +10:00
Nyall Dawson
8ad2d7291f More unit tests 2019-02-09 07:27:39 +10:00
Nyall Dawson
2857f585ae File widget should also accept drops from browser 2019-02-09 07:27:39 +10:00
Nyall Dawson
d741c73d9b Dropping a file onto a file widget in directory mode should set the widget
to the folder containing that file, not reject the event entirely
2019-02-09 07:27:39 +10:00
Nyall Dawson
061882d9f7 [processing] Port file widget wrapper to new c++ API 2019-02-09 06:23:47 +10:00
Alessandro Pasotti
ce7b8e269b
Update tests/src/python/test_provider_spatialite.py 2019-02-08 19:25:46 +01:00
Alessandro Pasotti
7f61dc4954 Fix spatialite text pks and other issues
... also fixes the geometry information query
when spatialite version is >= 4

Fixes #21176

With tests
2019-02-08 17:49:03 +01:00
mhugent
4eaae77a5d
Merge pull request #9129 from mhugent/itempolyline_end_arrow
Move end arrowhead by half arrow width
2019-02-08 17:19:29 +01:00
Marco Hugentobler
14e517665f Add unittest for composer polyline with arrow 2019-02-08 16:23:29 +01:00
Martin Dobias
b7138b17e1 Fix tests 2019-02-08 13:15:09 +01:00
Martin Dobias
941ec4cf66 [vertex tool] add new vertex without moving it (shift+double click)
Obviously this is something that some people find useful, but because
it is not so common it uses shift modifier.
2019-02-08 13:15:09 +01:00
Marco Hugentobler
a321d40840 Adapt unit test control images 2019-02-08 10:56:07 +01:00
rldhont
f285d91ce4 [Tests] Add LIKE with underscore (_) as partially uncompiled expression for shp provider 2019-02-08 15:42:36 +10:00
rldhont
4b60a1e3bd [Tests] Add LIKE underscore (_) test to feature source test base 2019-02-08 15:42:36 +10:00
Even Rouault
2341fa86f6
Merge pull request #9118 from rouault/fix_20742
Correctly compute layer extent when zooming out layer [WFS provider]
2019-02-07 17:32:57 +01:00
mhugent
a774499b95 Don't add extra linebreak in print composer tables
Check if remaining text is short enough to go in one line. Fixes #20546
2019-02-07 21:08:05 +11:00
Tudor Bărăscu
6c1036c5c0 remove 'multithreading is not supp in server text' 2019-02-07 17:19:14 +11:00
Julien Cabieces
e948120b7b Correct crash when read from ogr file in thread (QgsProcessing for instance)
fixes #20581
2019-02-07 16:58:12 +11:00
Even Rouault
32d902874a
[WFS provider] Correctly compute layer extent when zooming out layer (fixes #20742) 2019-02-06 22:32:26 +01:00
Matthias Kuhn
31ab3bb5d1
Merge pull request #9115 from m-kuhn/wmts-getcapabilities-compat
Append ? to WMTS GetCapabilities
2019-02-06 22:01:53 +01:00
Matthias Kuhn
76ac0f1f3c
Even more test fixes 2019-02-06 20:07:10 +01:00
Matthias Kuhn
0629a1b6da
More test fixes 2019-02-06 20:06:53 +01:00
Matthias Kuhn
a13e50270e
Fix test 2019-02-06 18:21:55 +01:00
Matthias Kuhn
3564838ef2
Fix test 2019-02-06 18:21:29 +01:00
Matthias Kuhn
db15057732
Merge pull request #9112 from m-kuhn/sip-keep-reference-to-registry
Sip keep reference to registry
2019-02-06 17:13:17 +01:00
Matthias Kuhn
b2aed603f1
Add registry keepreference test 2019-02-06 12:18:41 +01:00
Even Rouault
e19bf11f9e
[WFS provider] Ensure stability of QGIS FeatureId when reloading layer (fixes #20865) 2019-02-06 10:44:52 +01:00
Nyall Dawson
62e09d9467 [processing] If model name starts with a digit, we need to remove that when generating a class name 2019-02-05 22:45:43 +11:00
Alessandro Pasotti
185855b214
Merge pull request #9099 from elpaso/bugfix-21150-file-protocol-path-resolver
Strip file:// from local files path before resolving
2019-02-05 10:58:26 +01:00
Martin Dobias
4f905cc2e8 [vertex tool] right-click to loop through editable features
Until now mouse right-click could only select and deselect the highlighted
feature to "lock" vertex tool (and numerical editor) to it, so that it is
easier to focus only on editing of the particular feature. It was however
still difficult to pick the right feature in case there were multiple
features in one location or very close to each other. This is now solved
by the fact that repeated right button clicks will loop through the editable
features. So if there are two features in one location (A, B) then repeated
right-clicks will select: A - B - nothing - A - B - nothing ...
2019-02-05 09:07:58 +01:00
Alessandro Pasotti
22c22e8e5c Strip file:// from local files path before resolving
Fixes #21150 - Delimitedtext layer saves absolute path
when project in relative path mode
2019-02-05 08:29:38 +01:00
Nyall Dawson
eeff02fc14 [processing] Port matrix widget wrapper to newer c++ API
Allows matrix parameters to be correctly set for model child algorithms

Fixes #20914
2019-02-05 16:57:21 +11:00