17175 Commits

Author SHA1 Message Date
Martin Dobias
520246174a Fixes to SIP finally working 2020-04-19 08:14:49 +10:00
Martin Dobias
cad7cf4a06 Add QgsLayoutItem3DMap to PyQGIS [not working yet] 2020-04-19 08:14:49 +10:00
Alessandro Pasotti
8b61e24e96
Merge pull request #35828 from elpaso/server-cleanup
Server (minor) cleanup
2020-04-18 08:51:06 +02:00
Alexander Bruy
e9dd602da6
Merge pull request #35815 from alexbruy/ds-vectortiles
Add vector tiles to Datasource manager dialog and Layers menu
2020-04-17 11:59:39 +03:00
Nyall Dawson
6a1a2e9af0 [processing] Fix handling of vrt, SAGA tif output file names
Fixes #35755, fixes #35770
2020-04-17 16:18:09 +10:00
Nyall Dawson
226bc42dd8 [FEATURE][layouts] Support pasting pictures directly into layouts
Embeds the pasted picture into the layout.

Note that Qt image clipboard handling seems a bit... crap. So success
may vary.
2020-04-17 13:48:05 +10:00
olivierdalang
915b67ddb2
[processing modeler] Show arrowheads for parent/child relations 2020-04-17 08:49:46 +10:00
vcloarec
9377ec414c allow temporal layout item map 2020-04-17 04:01:06 +10:00
Alexander Bruy
05370ca842 [feature] Add Vector Tile Layer action in "Layers" menu 2020-04-16 16:06:38 +03:00
Alexander Bruy
b1ed51a71d [feature] vector tile connections import/export 2020-04-16 14:54:24 +03:00
Alexander Bruy
39e397ebd0 [feature] api for adding vector tile layers
This is code-only, not visible to users change and prerequisite for
exposing vector tile layer in the Data Source manager
2020-04-16 13:26:40 +03:00
Alessandro Pasotti
83979c30ef Server: fix wrong comment and log message 2020-04-16 09:34:05 +02:00
Nyall Dawson
3b3c7d8012 Hookup model logic for correct skipping of branches which shouldn't be run 2020-04-16 16:02:53 +10:00
Nyall Dawson
6a1b10686b [FEATURE][processing] New modeler algorithm for conditional branches in models
This algorithm allows useres to setup multiple conditions (via qgis expressions),
which cause their corresponding branch of the model to be run or skipped
depending on the result of the expression evaluation.

Sponsored by Andreas Neumann
2020-04-16 16:02:53 +10:00
Nyall Dawson
05bc716827 Move model child algorithm dependencies selection widget to c++, make inline panel 2020-04-16 16:02:53 +10:00
Nyall Dawson
e3955df564 Add method to model API to get available dependencies for a child algorithm 2020-04-16 16:02:53 +10:00
Nyall Dawson
b2167594fe Make handling of processing child algorithm dependencies more flexible
Instead of just using child ID strings, use a new dedicated class to
store dependency information
2020-04-16 16:02:53 +10:00
Nyall Dawson
061e8587cd When an error occurs while loading a plugin, tag it as a Critical message
instead of just a Warning message
2020-04-16 16:02:41 +10:00
Nyall Dawson
7fd72f3b4e [FEATURE][processing] Allow reordering model inputs
Instead of forcing a quasi-random ordering of inputs for models,
this commit exposes a new "Reorder Model Inputs" option in the model
designer which allows users control over the exact order of
inputs to show users for their model.

No more illogical ordering like showing a field choice before the
layer choice it's based on!

Sponsored by NaturalGIS
2020-04-16 06:03:48 +10:00
Alexander Bruy
2770c4990e
Merge pull request #35790 from alexbruy/connections-fixes
import/export for ArcGIS Map and FeatureServer connections (fix #27485)
2020-04-15 20:20:23 +03:00
Alessandro Pasotti
869e148f69
Merge pull request #35688 from elpaso/alias-expressions
Forms: expression controlled aliases (labels)
2020-04-15 15:09:15 +02:00
Martin Dobias
59c1ac348d Add support for identify tool for vector tile layers
Also:
- enables saving/loading of layer definition files (.qlr) with vector tile layers.
- makes fields of vector tile layers sorted so they are easier to navigate
2020-04-15 13:38:19 +02:00
Alexander Bruy
99a930ca51 [feature] add API to import/export ArcGIS MapServer and FeatureServer
connections. This is API-only change not visible for users.
2020-04-15 12:54:58 +03:00
Alessandro Pasotti
83e42f5bac Apply PR comments 2020-04-15 10:48:16 +02:00
Alexander Bruy
76872fb5c9
Merge pull request #35764 from alexbruy/ds-manager
Add XYZ tiles to Datasource manager dialog and Layers menu
2020-04-15 11:26:24 +03:00
Alexander Bruy
261553dd28 fix docs 2020-04-15 08:33:55 +03:00
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
Alexander Bruy
baf7729ca0 fix Travis 2020-04-14 18:34:03 +03:00
Alexander Bruy
079dae3529 [feature] add "Add XYZ Layer" button to Layers menu 2020-04-14 13:54:39 +03: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
Alessandro Pasotti
f2f7244bd1 Form alias data defined: cleanup and simplify
Moved storage to QgsEditFormConfig
2020-04-14 09:37:51 +02: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