17142 Commits

Author SHA1 Message Date
Martin Dobias
8c488b4ef0 Added QgsRenderContext arg to referencedFields() + unit tests 2020-04-15 08:33:29 +10:00
Martin Dobias
8ec0dc53fe Few bits from the review 2020-04-15 08:33:29 +10:00
Martin Dobias
7c1d1fe97c Fix tests and reference image 2020-04-15 08:33:29 +10:00
Martin Dobias
f8a6b9fa3a Add support for labeling of vector tile layers 2020-04-15 08:33:29 +10:00
Nyall Dawson
acc68447c3 Validate models before running from designer, showing a summary of issues 2020-04-14 20:27:21 +10:00
Nyall Dawson
b9a99890b4 Add method to validate a whole model 2020-04-14 20:27:21 +10:00
Nyall Dawson
2dc07ee8f7 [processing] Show warnings in model designer message bar if algorithm
definition is incomplete/invalid after editing a child algorithm
2020-04-14 20:27:21 +10:00
Nyall Dawson
f476fe7fc4 [processing] Don't force a child algorithm in a model to have all valid values upfront
This allows defered setting of parameter values, e.g. if you add an algorithm, fill in
half the parameter values, then realise you need to add a new input to the model, you
don't have to lose all your filled in values...
2020-04-14 20:27:21 +10:00
Nyall Dawson
9f7c7fcb35 Add method to validate a child algorithm in a model
Checks that the algorithm has valid values for all inputs
2020-04-14 20:27:21 +10:00
Nyall Dawson
0558d64198 Add mechanism to show warning messages in modeler designer 2020-04-14 20:27:21 +10:00
Mathieu Pellerin
0f66c3efb7 Fix travis, broken due to some failure to convert struct QVariant property 2020-04-14 18:20:18 +10:00
Vincent Cloarec
17a95ef0a5
[MESH][FEATURE] update to MDAL 0.5.91 Multi meshes in one file (#35669)
Allow load of multiple (sub-)meshes from a single file. If file contains multiple meshes (e.g. UGRID file), user needs to select the meshes to load from the dialog.
2020-04-14 08:17:15 +02:00
Alessandro Pasotti
00000a085c
Merge pull request #35738 from elpaso/server-badlayer-ignore
Server: add QGIS_SERVER_IGNORE_BAD_LAYERS config option
2020-04-14 07:57:09 +02:00
Nyall Dawson
d24ae53e0f Tweak model component clipboard logic -- only copy comments and outputs
connected to algorithms when they have been explicitly selected by the user
2020-04-14 14:36:02 +10:00
Nyall Dawson
47f96e2466 [FEATURE][processing] Allow copying/cut/paste of model components
This commit allows users to copy and paste model components, both
within the same model and between different models
2020-04-14 14:36:02 +10:00
Nyall Dawson
1c6ab3569b Sipify 2020-04-14 09:22:47 +10:00
root676
4d4a7a4a08 remove old python teststring 2020-04-14 09:20:56 +10:00
Alessandro Pasotti
b94988aef6 Server: add QGIS_SERVER_IGNORE_BAD_LAYERS config option
Allow to override the default behavior in case of
bad layers (which is to invalidate the whole project).

When set to TRUE, the bad layers are skipped and the
project is considered available.

Followup #8922
2020-04-13 10:38:50 +02:00
Alessandro Pasotti
1175555301 Totally unrelated :/ 2020-04-13 10:29:19 +02:00
Nyall Dawson
847aadfd08 Fix possible exception in processing history panel 2020-04-13 17:13:24 +10:00
Nyall Dawson
0396162d1f [processing] De-emphasise SAGA results when searching in toolbox
This change "dims" the results from the SAGA provider when a search
is made in the toolbox, to visually push users towards picking alternative
algorithms instead.

The Processing implementation of SAGA algorithms are a constant source
of critical bugs for users, causing incorrect analysis results. There's
zero community interest in actively maintaining this provider, so we
need to take steps to push users to stop picking these algorithms
wherever alternative (QGIS/GRASS/GDAL based) equivalents exist.

And for 4.0, seriously re-consider dropping this provider from the
out of the box install. We are causing more harm then good by offering
it to users.
2020-04-13 17:12:14 +10:00
Nyall Dawson
da4a195a94 Don't prompt to cancel the news feed task on shutdown
If it hasn't completed, just cancel it immediately without prompting
users -- it's not essential that it completes
2020-04-12 15:57:47 +10:00
Nyall Dawson
c0f0a49f9c Add an optional flag to QgsTask to indicate that the task can be canceled
without any user facing prompts

Useful for non-essential tasks
2020-04-12 15:57:47 +10:00
Matthias Kuhn
7a9c3c621a
Merge pull request #35008 from suricactus/plugins_sort_by_date
Adds support to sort the plugins by update date; Show the plugin version update time
2020-04-11 07:15:24 +02:00
Nyall Dawson
c4049c6439 Save and restore patch shapes for symbol nodes 2020-04-11 05:25:22 +10:00
Nyall Dawson
b920e358c7 Add methods to serialize QgsLegendPatchShape 2020-04-11 05:25:22 +10:00
Nyall Dawson
07b64a3f2d Add support for setting legend patch shapes for nodes in the layer tree 2020-04-11 05:25:22 +10:00
Nyall Dawson
40638fe62b Add support for rendering using QgsLegendPatchShape to QgsSymbol::drawPreviewIcon 2020-04-11 05:25:22 +10:00
Nyall Dawson
e1b23139ac Add API to convert legend patch shapes to QPolygonF based paths for rendering 2020-04-11 05:25:22 +10:00
Nyall Dawson
8564c453ec Add methods to get default patch shapes to QgsLegendPatchShape 2020-04-11 05:25:22 +10:00
Nyall Dawson
fd95215355 Allow for null QgsLegendPatchShapes 2020-04-11 05:25:22 +10:00
Nyall Dawson
1b5f4dd771 New class QgsLegendPatchShape
Represents a patch shape for use in map legends.
2020-04-11 05:25:22 +10:00
Nyall Dawson
a08af65b42 More boring duplicate code cleanup 2020-04-11 05:24:54 +10:00
Nyall Dawson
0e8be09fd0 Remove a bunch of duplicate code and simplify interface for QgsStyle/QgsStyleModel 2020-04-11 05:24:54 +10:00
Alexander Bruy
6c2937fd86 [processing] set correct filter for v.in.lidar (fix #35700) 2020-04-11 05:22:09 +10:00
Mathieu Pellerin
c0a29051b4 [FEATURE][digitizing] Add avoid intersection/overlap mode
This commit adds a new avoid intersection mode setting when
digitizing new features. The three available modes are:
- allow intersections/overlaps
- avoid intersections/overlaps on active layer
- avoid intersectonss/overlaps on layers list

The third mode is what QGIS has had for a while, except
its UI/UX is a bit messy. The layers list is setup by
the user via the advanced snapping configuration widgets,
but isn't connected at all with whether snapping is
enabled / disabled.

This new approach makes it explicit to user whether
newly-added features might be clipped or not, and
if so by which layer(s).

Finally, the new 'avoid intersections/overlaps on
active layer' is likely a far more useful behavior
than having a list of layers (for e.g., you might
be digitizing on a layer that can't have overlap
with itself but is fine to overlap with another
layer, the latter also in need of avoid overlap
_with itself_).
2020-04-10 13:42:07 +07:00
Matthias Kuhn
e3211a0434
Merge pull request #35514 from stev-0/#29225
Fix sip __hash__ for QgsActionScope
2020-04-08 10:57:59 +02:00
Paul Wicks
b73bd58cfb
[FEATURE][processing] New algorithm "Contour Polygons"
With similar functionality to the existing GDAL contour algorithm, but exporting polygon representations of the contours
2020-04-08 08:34:55 +10:00
Denis Rouzaud
6ba8cccdb9
Merge pull request #35110 from obrix/snapping_zoomlvl_optim
Snapping enabled on a configurable scale range
2020-04-07 13:31:15 +02:00
Martin Dobias
f713cc3559 Vector tiles: styling panel integration + widget for basic renderer 2020-04-07 13:25:49 +02:00
obrix
b5fa0fab5f Remove prefix on parameters name. Remove whitespace. 2020-04-07 09:27:08 +02:00
obrix
f2a1712971 Fix spelling. 2020-04-07 09:27:08 +02:00
obrix
8b88115633 Fix some documentation issues. Use minimum and maximum instead of min and max. Add default value for min and max in IndividualLayerSettings as the two new parameters break compatibility. 2020-04-07 09:27:08 +02:00
obrix
080d0fa112 Remove useless comments in sip. 2020-04-07 09:27:08 +02:00
obrix
c7f7c9829d Regenerate qgssnappingconfig.py 2020-04-07 09:27:08 +02:00
obrix
563e396015 Some style adjustments 2020-04-07 09:27:08 +02:00
obrix
03c522a957 Use a tri state button to configure snapping limit : disable, global and per layer. 2020-04-07 09:27:08 +02:00
obrix
f56e0f51c1 Various small reworks :
* better documentation
* translation on non translated string
* Grey out column min and max of individual layer snapping settings when snapping limit on scale is disabled.
  Force the refresh when rowChanged is called even if the individual settings are the same to enable/disable immediately the columns when the snapping limit on scale button is pushed.
2020-04-07 09:27:08 +02:00
obrix
30a52ac55e Fix PyQgsLayerDependencies test and add some doc. 2020-04-07 09:27:08 +02:00
obrix
6b9fb087c2 Fix style. 2020-04-07 09:27:08 +02:00