16449 Commits

Author SHA1 Message Date
Nyall Dawson
61454c67cd [processing] Add api to allow providers to report warnings which should
be shown to users when using that provider

This can be used to return a translated warning message which should be
shown to users of this provider. It's intended for use in cases such as
a provider which relies on a 3rd-party backend, where the version of the
backend software is not officially supported, or for alerting users to
providers in a "beta" or "untrustworthy" state.
2019-12-06 17:35:41 +10:00
Nyall Dawson
61903a766a Fix some build warnings, clazy warnings 2019-12-06 08:48:40 +10:00
Peillet Sebastien
35eea1c083 Visible status for embedded layers in embedded group
- For project : check visible state for embedded layers inside an unchecked group, instead of putting all layers in embedded-invisible-layers
- For theme : Add an 'checked-group-node' to save group visible state independently to layers in it.
Fixes #33097
2019-12-06 04:54:27 +10:00
Nyall Dawson
d182cf2d76 [gps] Correctly set initial value of hoz/vert accuracy and direction as not available 2019-12-06 04:50:53 +10:00
Nyall Dawson
6b5f983ad6 [gps] Add support for GPHDT heading from true north messages 2019-12-06 04:50:53 +10:00
Nyall Dawson
99c8afe4e9 [FEATURE] Show the total pan distance and bearing in the status bar during
canvas pan operations

Allows users to know exactly how far (and in what direction) they've dragged
the map.
2019-12-06 04:50:17 +10:00
Denis Rouzaud
d147a8dffa
Merge pull request #33233 from 3nids/class_method_params
Option to filter negative values in logarithmic classification method
2019-12-05 14:59:04 +01:00
Denis Rouzaud
dbd2d74a57 fix documentation 2019-12-05 10:17:51 +01:00
David Signer
153a5ff1bc tags instead of searchTags 2019-12-05 10:05:42 +01:00
Denis Rouzaud
456384e4b3 use QgsProcessingParameters::parameterAsBool
rather than re-implementing QVariant conversion in QgsClassificationMethod
2019-12-05 09:50:16 +01:00
Matthias Kuhn
c01f8042f8
Merge pull request #33162 from m-kuhn/dxf_dash_beautify
DXF export preserve dashed line style
2019-12-05 08:46:00 +01:00
Peter Petrik
7df4ec7f4a fix issues from 2nd review 2019-12-05 07:08:50 +01:00
Peter Petrik
d1dd68ae11 remove averaging settings class and expore averaging methods outside qgis core 2019-12-05 07:08:50 +01:00
Peter Petrik
a30bda6c3d [FEATURE] Initial implementation of QEP 158: Support of 3d stacked meshes in QGIS.
Stacked 3D meshes store values on the volumes that are regularly stacked over base 2d mesh. User can select various 3d to 2d averaging/interpolation method to convert values on volumes (3d) to values on faces (2d) that can be shown in mesh layer. This is achieved by new tab in the mesh layer properties dialog.
2019-12-05 07:08:50 +01:00
Denis Rouzaud
a3a7b5f447 code layout, loop improvements, dox, const correction 2019-12-05 06:09:29 +01:00
Denis Rouzaud
aec68661ca update python bindings 2019-12-04 22:20:26 +01:00
Julien Cabieces
ba925bb36d Create child feature with geometry from the relation editor (#32528)
* [FEATURE][needs-docs] Create geometric child feature from relation editor
2019-12-04 14:46:32 +01:00
Nyall Dawson
b4bc7cbffd iface.newProject() should return False if a new project could not
be created (e.g. if the user opts to cancel when prompted to save the
current project)
2019-12-04 19:02:46 +10:00
Nyall Dawson
66456a30e7 [labeling] When a layer is set to "blocking" mode, expose the obstacle
settings widget to allow users to tweak the obstacle behavior

Previously these settings were stuck inside the disabled label settings
widget, which meant that to edit them you had to temporarily enable simple
labels, tweak the setting, and then set back to obstacle mode... woot.
2019-12-04 14:47:36 +10:00
Nyall Dawson
d63714ae63 Fix spelling 2019-12-04 14:47:36 +10:00
Nyall Dawson
02fffdc64b [needs-docs] Move label obstacle settings to "placement" tab
and show detailed settings in a stacked panel widget

Because:

1. The settings belong next to the placement settings, because they
affect label placement directly (and are closely associated with the
label priority setting in this tab)

2. The label settings widget is ridiculously complex and overwhelming
even for experienced QGIS users. By moving detailed settings into
stacked panels we can avoid the initial complexity of the label settings
whilst also allowing us more flexibility to expose additional settings
in future without adding to the mess. So in future, I propose we move
all detailed settings to sub panels, and leave only the initial "enable"
setting at the top level (e.g. [x] "Repeat levels" -> click settings -> see
all repeat settings).
2019-12-04 14:47:36 +10:00
Nyall Dawson
ed93ebd91c Add QgsLabelObstacleSettingsWidget widget for customising label obstacle settings 2019-12-04 14:47:36 +10:00
Nyall Dawson
de2b60d7ef Hookup data defined properties support for QgsLabelSettingsWidgetBase 2019-12-04 14:47:36 +10:00
Nyall Dawson
060cfb4eeb [api] New class QgsLabelSettingsWidgetBase
Base class for widgets which allow customisation of label engine properties,
such as label placement settings.
2019-12-04 14:47:36 +10:00
signedav
20ac7e3c22 Update python/core/auto_generated/expression/qgsexpression.sip.in
Co-Authored-By: Matthias Kuhn <matthias@opengis.ch>

and

set parameter to const
2019-12-03 15:29:17 +01:00
David Signer
7fbf2c867d tags helping to find the correct function are integrated into the help of the expression
defined in the json files and used by the expression builder to find the function (not using as alias)
2019-12-03 15:29:16 +01:00
Nyall Dawson
9f63f49230 Move label obstacle settings out to their own class, and monkey patch around
to maintain current API

QgsPalLayerSettings is way too heavy, and we need to start refactoring
this into smaller atomic components
2019-12-03 19:38:24 +10:00
Nyall Dawson
b235d31b8f Move QgsPalLayerSettings default values to header 2019-12-03 19:38:24 +10:00
Vincent Cloarec
7f415ca7a7 [FEATURE] Static particle traces for rendering mesh vector dataset (#33165)
* [FEATURE] Static particle traces for rendering mesh vector dataset

This PR permits to display directly in QGIS static particle traces for vector datasets in mesh layer without any plugin.
The user can choose in the mesh layer properties window :
- the color
- the size of the traces (line width)
- the count of particles
- the maximum length of the particle's tail
2019-12-03 08:13:36 +01:00
Matthias Kuhn
574e0ebaa1 [db_manager] Allow opening .sql files
and not only .SQL files
also allow any file extension

Fix #33173
2019-12-02 01:43:28 +10:00
Matthias Kuhn
e87ea5ef85 Add dox 2019-12-01 10:04:15 +01:00
Matthias Kuhn
f81b680aa1 DXF export preserve dashed line style
We do not (yet) support an option to guarantee stroked parts at corners.
So also do not set this flag in the DXF export.
2019-11-29 17:58:02 +01:00
Vincent Cloarec
6d4c995a28 [FEATURE] API for rendering frames for mesh vector dataset animation (particles) (#33110)
* [FEATURE] API for rendering frames for mesh vector dataset animation (particles) 

Adds a renderer to generate frames that represent particle traces in a vector field of a mesh layer. The renderer cannot be chosen in the current GUI, however crayfish plugin can use API to generate avi/gif files with nice animations representing the movement of (random) particles in the mesh layer vector field.
2019-11-29 09:06:47 +01:00
Nyall Dawson
6ef3746bfb [processing] Fix exceptions when reporting errors during batch execution
Fixes #33105
2019-11-29 11:16:09 +10:00
David Signer
161af6ad26 search tags in expression function to look up the functionality in the expression builder 2019-11-28 16:47:48 +01:00
David Signer
8274566b62 temp path for processing output configurable 2019-11-28 21:19:34 +10:00
Alessandro Pasotti
d89745aec6
Merge pull request #33103 from elpaso/relation-reference-restore
Relation-reference widget: load dependencies
2019-11-28 10:25:55 +01:00
Nyall Dawson
2800798fef [FEATURE][layouts] Allow drag and drop of pictures onto layouts
E.g. drag an svg from a file explorer onto the layout to create a
new picture item containing that svg image.

Convenience++!
2019-11-28 18:38:31 +10:00
Nyall Dawson
ff3b4d5a74 Add API to set a label placement engine version, which dictates which
placement rules should be followed when solving the pal labeling engine
solution.

For new projects it defaults to version 2, but when loading an older project
version 1 is used.

This allows changes to be made to the label placement problem solving without
affecting the placement of labels in existing projects.
2019-11-28 09:54:51 +10:00
Alessandro Pasotti
37c42c3665 Relation-reference widget: load dependencies
Same behavior of value-relation widget.

Funded by: ARPA Piemonte
2019-11-27 17:54:16 +01:00
Nyall Dawson
b921e3e299 [processing] Fix menu links following c++ algorithm ports 2019-11-27 09:47:07 +10:00
Nyall Dawson
078f8451e0 [layouts] Ensure overview frames are correctly exporting during layer
based exports when the stacking position is set not set to above labels

Fixes #32763
2019-11-27 05:06:37 +10:00
root676
9fba322a73 fix point count test parameter 2019-11-27 04:18:28 +10:00
root676
3bf89fe100 fix CRS test parameter 2019-11-27 04:18:28 +10:00
root676
590c57c05e remove python alg help 2019-11-27 04:18:28 +10:00
root676
b96aed4e2d adaptation of algorithm test parameters 2019-11-27 04:18:28 +10:00
root676
08c194c7e0 remove python version of Random points in extent algorithm 2019-11-27 04:18:28 +10:00
Nyall Dawson
ab6239b753 Don't report success when a calculation error occurred 2019-11-26 18:25:26 +10:00
Nyall Dawson
0b3b7123b9 [processing] Port "Count points in polygon" algorithm to c++ 2019-11-26 13:45:08 +10:00
Alexander Bruy
0800c5ddaa remove Python version of the Grid algorithm, it was ported to C++ 2019-11-26 03:56:24 +10:00