47488 Commits

Author SHA1 Message Date
Nyall Dawson
3d03cfba8c Update test masks 2018-05-11 17:48:45 +10:00
Nyall Dawson
06d7725cca Fix api break, unit test 2018-05-11 17:48:45 +10:00
Nyall Dawson
0708d84139 Fix positioning of final scalebar label 2018-05-11 17:48:45 +10:00
Nyall Dawson
9ce19af552 Fix failing test 2018-05-11 17:48:45 +10:00
Nyall Dawson
9d2c4fca19 [FEATURE][layouts] Use text renderer for drawing scalebar text
Allows the full range of formatting options exposed through
text renderer - e.g. scalebar text with buffers, shadows,
background shapes, letter spacing, etc.

Say goodbye to unreadable scale bar text!
2018-05-11 17:48:45 +10:00
Nyall Dawson
a06000e0e7 Add method to QgsTextRenderer to retreive scaled QFontMetricsF
from a text format in a specified render context
2018-05-11 17:48:45 +10:00
Nyall Dawson
e53adc154b Add methods to convert QgsTextFormat to and from QFonts 2018-05-11 17:48:45 +10:00
Nyall Dawson
e35d1d0ed9 Fix setting default value for non-multiple enum params 2018-05-11 15:49:52 +10:00
Alexander Bruy
26a97a7da7 [processing] improve default values handling in the enum modeler GUI 2018-05-11 15:49:06 +10:00
Alexander Bruy
e97212e8b7 [processing] correctly restore default values 2018-05-11 15:49:06 +10:00
Alexander Bruy
0046b9f824 add single item to matrix parameter by default 2018-05-11 15:49:06 +10:00
Alexander Bruy
18f3151808 [processing] couple of fixes for matrix parameter 2018-05-11 15:49:06 +10:00
Alexander Bruy
bb0feccec4 [processing] use another icon for clear button and add confirmation 2018-05-11 15:49:06 +10:00
Alexander Bruy
3ec2dfa611 [processing] don't allow multiple enum items to be selected if
allowMultiple is not set
2018-05-11 15:49:06 +10:00
Alexander Bruy
39456ba6b4 [processing] fix handling of the multiple enum values 2018-05-11 15:49:06 +10:00
Alexander Bruy
33cfed2e06 [processing] fix method signature 2018-05-11 15:49:06 +10:00
Alexander Bruy
1ba34dcbea [processing] add matrix and enum parameters to wrappers and handle them
in the modeler dialogs
2018-05-11 15:49:06 +10:00
Alexander Bruy
038da1131d [processing] modeler GUI for matrix parameter 2018-05-11 15:49:06 +10:00
Alexander Bruy
ffa4b04e29 [processing] add modeler GUI for enum parameter 2018-05-11 15:49:06 +10:00
Alexander Bruy
213fc55369 Revert "Merge pull request #6929 from ghtmtt/fix_proc_modeler"
There are no useless parameters in Processing.

This reverts commit fd5e0a7f1947548e0d5bd1f004a586e2ae0b0473, reversing
changes made to 69de345784094730339ca4115bc7ed50beec5a1b.
2018-05-11 15:49:06 +10:00
Nyall Dawson
be73c9605f Spelling 2018-05-11 11:29:34 +10:00
Nyall Dawson
0d520456ea [processing][gdal] Fix conversion of non-EPSG crs parameters
to GDAL compatible strings
2018-05-11 11:29:34 +10:00
Juergen E. Fischer
6b67708166 add libyaml-tiny-perl & python-autopep8 to debian deps 2018-05-11 01:43:43 +02:00
Juergen E. Fischer
a9b663ec0c osgeo4w: include PGEO_DRIVER_TEMPLATE and OGR_SKIP in qgis.vars
(fixes #18234)
2018-05-11 01:27:06 +02:00
Martin Dobias
b6a26464d4
Merge pull request #6961 from wonder-sk/union-single-layer
[FEATURE] Union algorithm with a single layer
2018-05-10 14:46:38 -04:00
Juergen E. Fischer
9690d8061e add mdal provider to debian and osgeo4w packages 2018-05-10 20:18:46 +02:00
Juergen E. Fischer
968b50f4f0 expression help: support optional parameters and defaults 2018-05-10 20:15:39 +02:00
Martin Dobias
c3279ee544 Add a note about version added for new functions in testing module 2018-05-10 14:10:10 -04:00
Matthias Kuhn
9e1be6e8bd
Merge pull request #6966 from kannes/patch-1
add optional segments argument in buffer function docs
2018-05-10 17:57:00 +02:00
Hannes
e8d1099ff3
add optional segments argument
text taken from single_sided_buffer
2018-05-10 16:58:12 +02:00
Peter Petrik
85f42e7d46 remove build noise from output 2018-05-10 08:08:37 -04:00
Martin Dobias
191b0d4768 union: throw an exception if the second layer is specified but not valid 2018-05-10 07:45:34 -04:00
Martin Dobias
7df062ba63 Updates from Nyall's review 2018-05-10 06:50:58 -04:00
Martin Dobias
aa2b1e9834 Add test for single layer union 2018-05-10 06:50:57 -04:00
Martin Dobias
ef145afca6 Add support for unordered comparison of features of layers
This is useful when an algorithm returns features in no particular order
and sorting features by attributes does not help because there may be
features with the same attributes, giving non-unique sorting orders.
2018-05-10 06:50:57 -04:00
Martin Dobias
73d10afe31 Processing tests: allow topological geometry tests instead of exact tests
This is useful with geometry algorithms when the order of the coordinates of produced
geometries does not need to be exactly the same every time, but the output is still
topologically equivalent.
2018-05-10 06:50:57 -04:00
Martin Dobias
64b8c7250c [FEATURE] Union algorithm for single layer
Resolves all overlapping geometries just like GRASS or Arc do.

So now we have two variants of union:
- union(A) - does union within geometries of one layer
- union(A,B) - does union between geometries of two layers

For union(A,B) algorithm if there are overlaps among geometries of layer A or among geometries of layer B,
these are not resolved: one needs to do union(union(A,B)) to resolve all overlaps, i.e. run single layer
union(X) on the produced result X=union(A,B)

This should also address issues raised in #17131
2018-05-10 06:50:57 -04:00
Nyall Dawson
c738bcf7af [processing] Don't skip null parameter values when converting
parameters to pythong strings

We need to include these, in order to differentiate unspecified
parameters from parameters set to null values
2018-05-10 15:48:20 +10:00
Nyall Dawson
d05f95f7d5 [processing] Ensure unset parameters are translated to Python
None values when representing parameters as pythong strings
2018-05-10 15:48:20 +10:00
Juergen E. Fischer
e55bb558a6 cosmetics on 9e7e927b9c 2018-05-09 21:55:13 +02:00
Denis Rouzaud
4c92de9e98
Merge pull request #6505 from 3nids/form_url
[FEATURE] Allow to use a URL for a custom attribute form (UI file)
2018-05-09 10:58:17 -08:00
Denis Rouzaud
5d7a6c18ec remove useless API break 2018-05-09 14:02:51 -04:00
Jürgen Fischer
d99a27f432
Merge pull request #6958 from agauvrit-tis/patch-1
[FEATURE] Add DisplayVersion value in Uninstallkey
2018-05-09 17:22:48 +02:00
Denis Rouzaud
16497ee42c fix edit form test with local HTTP server 2018-05-09 11:04:29 -04:00
Denis Rouzaud
8e20996ddc simplify netwotk content fetcher registry
kudos @wonder-sk
2018-05-09 11:04:29 -04:00
Denis Rouzaud
30b7fd183c use QgsNetworkContentFetcherRegistry 2018-05-09 11:01:59 -04:00
Denis Rouzaud
c04ca96910 use QStringLiteral 2018-05-09 11:01:59 -04:00
Denis Rouzaud
5089d389b4 fix spelling 2018-05-09 11:01:59 -04:00
Denis Rouzaud
d413c8829a add UI form for testing 2018-05-09 11:01:59 -04:00
Denis Rouzaud
18699299ab [FEATURE ] allow to use URLs for attribute forms 2018-05-09 11:01:59 -04:00