6845 Commits

Author SHA1 Message Date
Alessandro Pasotti
16655d7f59 Minor changes 2020-04-03 21:21:14 +10:00
Vincent Cloarec
75ddf3c7a6
[FEATURE][MESH] plug mesh layer to QGIS temporal framework (#35466)
[FEATURE] Use temporal controller for the mesh layer time handling.
2020-04-03 08:21:15 +02:00
Nyall Dawson
406867d2ed Setup API to get theme linked to map pushed to linked legends 2020-04-03 14:43:11 +10:00
Nyall Dawson
0930906d0d Add signal which is emitted when a layout map's linked theme is changed 2020-04-03 14:43:11 +10:00
Martin Dobias
53075848ce
Merge pull request #35341 from wonder-sk/vector-tile-layer
[FEATURE] Vector tile layer - part 1
2020-04-02 16:06:30 +02:00
Nyall Dawson
a7610c5682 Give up on enum class
Python says no.
2020-04-02 19:20:40 +10:00
Nyall Dawson
d20a3bddc0 [FEATURE][processing] Port output parameter wrappers to new c++ API for modeler
This allows a range of new possibilities, including:
- models with static outputs for child algorithms, e.g. always saving
a child algorithm's output to a geopackage or postgres layer
- models with expression based output values for child algorithms, e.g.
generating an automatic file name based on today's date and saving
outputs to that file
2020-04-02 02:29:54 +10:00
Nyall Dawson
f31af07235 Fix windows build 2020-04-01 18:20:09 +10:00
Nyall Dawson
4fa9083cf6 [FEATURE][processing] Allow creation of group boxes in models
These are a visual guide, allowing designers to create logical groups
of algorithms relating to a single task ("eg 'Prepare data')

The title and color of the group boxes can be customized
2020-04-01 18:20:09 +10:00
Nyall Dawson
a7a64d40e0 Add API for storing group boxes in processing models 2020-04-01 18:20:09 +10:00
Nyall Dawson
e788be93fa [processing][FEATURE] Add api for setting model component colors, and expose
the option to set manual colors for individual model comments
2020-04-01 18:20:09 +10:00
Samweli
88f039e6ea added two match modes for wmst static temporal range updates 2020-04-01 14:36:32 +10:00
Nyall Dawson
60af337c3c [processing][FEATURE] Add "Save Log to File" algorithm for models
This algorithm saves the contents of the execution log (right up to
the point in the model at which the 'save log' algorithm executes)
to a file.

It can be used to automatically store the debugging log when running
models for later reference and transparency.
2020-03-31 19:35:28 +10:00
Nyall Dawson
0684d41fe1 Make QgsProcessingFeedback remember logged messages for later recall 2020-03-31 19:35:28 +10:00
Martin Dobias
a2f86469d3 Fix doxygen, spelling, shared_ptr 2020-03-31 08:51:54 +02:00
Martin Dobias
be98e2f0f6 [FEATURE] Raster layer contour renderer
This new renderer draws contour lines that are calculated on the fly
from the source raster band. It is possible to set interval of contour
lines and symbol used for drawing.

In addition there is support for "index contours" - contour lines
with higher interval, typically drawn with a wider line symbol.

If we generate contour lines on input raster block with the same size as our
output raster block, the generated lines would contain too much detail.
This detail can be reduced by the "downscale" factor - this will request
lower resolution of the source raster.
2020-03-31 08:51:54 +02:00
Nyall Dawson
e386573c0c [FEATURE][processing] Port multi-layer input parameter widget to new API
Allows
- expression based inputs
- rearrangement of inputs for multi-layer parameters in models, to set
specific layer orders
2020-03-31 01:06:48 +10:00
Nyall Dawson
c85f62a968 Make more use of layer type hints to avoid trying to open raster/mesh
layers using the ogr provider
2020-03-31 01:06:48 +10:00
Ivan Ivanov
f8897d82a6 Updated documentation to clearly state the behavior of aggregate majority/minority 2020-03-30 11:38:56 +10:00
Ivan Ivanov
1c694253db Documentation dyslexia 2020-03-30 11:38:56 +10:00
Ivan Ivanov
5ec5bc98fe FEAT #27230 #27271 [Aggregates] Allow majority and minority statistics on non-numeric fields 2020-03-30 11:38:56 +10:00
Samweli
b399e8a60b removed static wmst settings in provider temporal capabilities 2020-03-30 08:01:58 +10:00
Nyall Dawson
f4b260e49d Cleanup unused API 2020-03-30 08:01:58 +10:00
Nyall Dawson
a06e707a15 Better repr for QgsProcessingFeatureSourceDefinition 2020-03-29 05:56:23 +10:00
Harrissou Sant-anna
5329f05485 Fix target version 2020-03-28 15:59:18 +01:00
Harrissou Sant-anna
1ad5c43c4e Update sip file 2020-03-28 15:54:27 +01:00
Harrissou Sant-anna
e7550818b1 Apply suggestions from review 2020-03-28 15:54:26 +01:00
Harrissou Sant-anna
27ce90d828 Update target version 2020-03-28 15:54:26 +01:00
Harrissou Sant-anna
96baf1b64c [feature] Allow renaming of the current map theme 2020-03-28 15:54:26 +01:00
Martin Dobias
804ac87030 Get rid of qDebug(), wrap strings in QStringLiteral 2020-03-27 21:51:55 +01:00
Martin Dobias
9e80f59f20 Use random colors, fix sip includes, fix warnings in server 2020-03-27 19:41:18 +01:00
Martin Dobias
3c33bf7863 Added a basic rendering test 2020-03-27 16:36:19 +01:00
Martin Dobias
8d24e1744b Added zmin/zmax parameters to limit usable zoom levels 2020-03-27 14:07:24 +01:00
Martin Dobias
5ec1890643 Moved to proper QgsMapLayer subclass + icon + optional tile borders 2020-03-27 12:08:40 +01:00
Matthias Kuhn
acbfb424b8 [joins] Disable caching if editing is enabled
Fixes https://github.com/qgis/QGIS/issues/35403
2020-03-27 10:59:25 +01:00
Martin Dobias
976c0e0ddb Do not mix class and struct 2020-03-26 21:26:06 +01:00
Martin Dobias
617db5919a Doxygen, spelling, sip fixes 2020-03-26 21:08:01 +01:00
Martin Dobias
bbc6af5ded Fixes to python bindings + some bits from code review 2020-03-26 19:31:00 +01:00
Nyall Dawson
320fecce00 [processing] Add method to encode and decode a combined provider key and uri
to a single string

We need this to allow processing inputs to load non gdal/ogr/mdal sources, such
as being able to directly read postgis layers without loading them into a project first
2020-03-26 11:55:45 +10:00
Alessandro Pasotti
5b965ce704 PyQgis: don't crash on invalid provider
Related to #35354
2020-03-26 10:52:32 +10:00
Ivan Ivanov
6a0ae060bc Added new static QgsFieldModel::fieldToolTipExtended 2020-03-26 09:05:49 +10:00
Ivan Ivanov
050dfce89a FIX #15144 add tooltip on fields in identify window / attribute window / feature form
- added new `QString QgsField::displayType( const bool showConstraints = false )` to unify the display of field types whenever length or precision are present
- added new argument `expression` to `QgsFieldModel::fieldToolTip( const QgsField &field, const QString &expression = QStringLiteral() )`. Now the tooltip shows "<alias> (<field>)\n<type>\n<comment>\n<expression>" with appropriate formatting
- added meaningful field tooltips in the "Identify Results" dialog
- field tooltips show the same content in "Feature Attributes" form, "Attribute Table" and "Identify Tool"

Fixes #15144
2020-03-26 09:05:49 +10:00
Martin Dobias
8105ad1fe5 Initial work on vector tile layer support 2020-03-25 13:27:11 +01:00
Nyall Dawson
1915a16bf3 Port extent parameter to new c++ API widget wrapper 2020-03-25 19:25:40 +10:00
Nyall Dawson
488c8c739a Fix loss of callback when invalid geometry handling method is set through
source definition
2020-03-25 09:42:17 +10:00
Nyall Dawson
afbe727c1a Allow serialization of QgsProcessingFeatureSourceDefinition through QgsXmlUtils 2020-03-25 09:42:17 +10:00
Nyall Dawson
6e2c21eb55 [processing] Cleanup handling of "iterate over source" buttons, move
creation completely to widget wrapper
2020-03-25 09:42:17 +10:00
Vincent Cloarec
34d44c08ed
[MESH] Resampling from vertex values to face values (#35264)
[FEATURE] Implements resampling from values on vertices to values on faces with the neighbor average method. (note that resampling method for datasets defined on faces, e.g., the value on vertices is calculated from value on faces was added in the previous QGIS release)

The default method is set to "none" for resampling from vertices to faces and to "neighbor average" for resampling from faces to vertices. Then the default rendering is now always smooth.
2020-03-24 10:03:54 +01:00
Vincent Cloarec
20a7ed44ac
[FEATURE][MESH] coloring mesh vector dataset with color ramp shader (#35216)
fixes #33978 Allows user to color the mesh layer vector dataset (arrow, stream lines, traces) with color ramp shader depending on the magnitude of the vector.
2020-03-24 09:58:48 +01:00
Nyall Dawson
28467f2ad0 Sipify 2020-03-24 10:53:50 +10:00