59291 Commits

Author SHA1 Message Date
Matthias Kuhn
c1bbe2fd28 Fix data defined rotation detection 2019-12-08 15:02:58 +01:00
Matthias Kuhn
348d2169eb When DD rotation fails to evaluate, fallback to static value
The old behavior was to always fall back to 0 in case of a failing expression. Which made it hard to create a proper legend in some cases.

E.g. if you had two symbol layers with the following expressions for their rotation

    "orientation"

And

    90 + "orientation"

which would be two orthogonal symbol layers (e.g. denote a right angle), rotated by an orientation field.

Now in the legend (and symbol preview), both layers would be shown with a rotation of 0, because there is no associated feature with a field orientation.

The new behavior is to fallback to the static, configured values which makes it very intuitive to configure the legend for these cases.
2019-12-08 15:02:58 +01:00
Matthias Kuhn
fc5c95c28b
Merge pull request #33279 from m-kuhn/sandboxed_expression_mode
Fail expression evaluation if missing field is referenced
2019-12-08 14:42:52 +01:00
Matthias Kuhn
b92679ad66
Make use of microoptimization 2019-12-08 14:04:06 +01:00
Alessandro Pasotti
341c85a461
Merge pull request #33280 from elpaso/bugfix-gh33203-broken-link-on-slash
Bugfix gh33203 broken link on slash
2019-12-08 12:18:51 +01:00
Matthias Kuhn
1f9414cb60 Update tests for non existing fields 2019-12-08 08:46:58 +01:00
Matthias Kuhn
1175d55e92 Microoptimization 2019-12-08 08:33:25 +01:00
Alessandro Pasotti
e1ea0f3c50 Add py code examples to api 2019-12-07 17:34:12 +01:00
Alessandro Pasotti
9af63012db Also accept collection URLs with ending slash
Fixed #33203
2019-12-07 17:33:35 +01:00
Matthias Kuhn
2672c74393
Merge pull request #33263 from m-kuhn/azure_mark_failing
Mask failing Windows tests
2019-12-07 14:18:21 +01:00
Matthias Kuhn
e1b016bc2b When evaluating an expression with a missing referenced field, this will be replaced with [fieldname].
When calculating data defined values, this will be counterproductive.
A field with a data defined value might work well in the expression builder (because fiels are all present) but fail in the legend, because it's rendered with no feature and hence fields. With this change, we can at least use `try("fieldname", 0)` to fallback to a default value.
2019-12-07 13:15:44 +01:00
Matthias Kuhn
3bf8d96ad3 Remove unneeded ; 2019-12-07 13:15:41 +01:00
Matthias Kuhn
332550ed55 Typo 2019-12-07 13:11:25 +01:00
Matthias Kuhn
727c397c93
Update src/app/qgisapp.cpp 2019-12-07 12:59:50 +01:00
Matthias Kuhn
4d6758d12c
Merge pull request #33246 from m-kuhn/nan_null
Support for NaN in text edit widget
2019-12-07 12:00:22 +01:00
Matthias Kuhn
b639cdf4ce Some consting 2019-12-07 11:22:02 +01:00
Matthias Kuhn
05da49aeb8 Do not throw warning on invalid layers 2019-12-07 11:22:02 +01:00
Matthias Kuhn
6bcd5aea37 Mask meshcalculatortest on windows build 2019-12-07 11:17:32 +01:00
Nyall Dawson
759f1ef4e6 Fix typo 2019-12-07 19:09:51 +10:00
Nyall Dawson
f340c5fe1b Simplify some pal memory handling 2019-12-07 19:09:51 +10:00
Nyall Dawson
7c59700f2b Responsibility for managing obstacle geometry is in QgsLabelObstacleSettings 2019-12-07 19:09:51 +10:00
Nyall Dawson
7f38c41497 Avoid duplicate code for evaluating label obstacle data defined values 2019-12-07 19:09:51 +10:00
Nyall Dawson
04432990ce [pal] Remove dedicated setters/getters for individual obstacle settings, instead
expose whole QgsLabelObstacleSettings to pal
2019-12-07 19:09:51 +10:00
Matthias Kuhn
97566abd8d Mask more tests 2019-12-07 08:37:40 +01:00
Juergen E. Fischer
64f17aaa21 don't pull in parallel from transifex (occasionally looses files) 2019-12-06 20:35:51 +01:00
Nyall Dawson
fed3a8c622 Now that QgsDataSourceUri username/password/authcfg params are aliases
to the direct getters/setters, correctly use the explicit getters and
setters wherever possible.

Makes the code easier to read and more consistent -- now params should
only ever be used for "extra", context specific stuff instead of
commonly user authentication parameters.
2019-12-07 05:11:55 +10:00
Peter Petrik
b93dfdd0b3
[feature] Support datasets with data defined on faces in mesh calculator (#33248)
* [feature] support datasets with data defined on faces in mesh calculator, fix #30219, fix #30170

added "driver" and "group name" to the calculator interface.
MDAL now supports 3 drivers for storing results, so user must be able to choose appropriate driver and dataset group name (some drivers store multiple groups to 1 file)
2019-12-06 18:27:28 +01:00
Alessandro Pasotti
60c401a8d2
Merge pull request #32999 from elpaso/rasterize-c-plus-plus-concurrent
Rasterize: QtConcurrent version
2019-12-06 14:58:35 +01:00
David Signer
ea91966000 get the cache field id according to a lookupField() of the fields and the field name
since then would be aliases and upper-/lower case written fieldnames be accepted in
extensions and avoid a crash in getSpatialiteFieldNameFromUserVisibleName
2019-12-06 13:55:15 +01:00
Alessandro Pasotti
3dcbde9c4d Attempt to fix Windows GPKG project storage
Fixes #33057 (hopefully)
2019-12-06 13:34:31 +01:00
Matthias Kuhn
e821441286 Mask failing tests 2019-12-06 13:10:06 +01:00
Denis Rouzaud
84d6bbe88a fix dox and switch to classic enum
scope based enum is causing troubles from Python depending on sip version
2019-12-06 13:06:08 +01:00
Matthias Kuhn
93ecb00d7a Add test for TextEditWidget NaN/NULL 2019-12-06 12:49:57 +01:00
Martin Schitter
cfbe66473e Fix single threaded use of MBTiles generator 2019-12-06 10:59:00 +01:00
mash-graz
89f1640419 successive ThreadPoolExecutors for all zoom levels
instead of using only one ThreadPoolExecutor for all MetaTiles, its now handled in a loop and new ThreadPools for the next zoom level will be started when all work for the previous one is already done. i guess, this will fix the issues and interferences described in #32471 and shouldn't be much slower.
2019-12-06 10:59:00 +01:00
Denis Rouzaud
9e216b40cc adapt test 2019-12-06 09:30:28 +01:00
Denis Rouzaud
86c3202a1d Classification methods: save/read parameters, improve negative value handling in log method 2019-12-06 09:10:43 +01:00
Nyall Dawson
d969e41799 [processing][saga] Allow saga algorithms to be run under SAGA 7.3,
but show a huge obnoxious "NOT OFFICIALLY SUPPORTED" warning

SAGA 7.3 is the new SAGA LTR, so we eventually need to move towards this.

But adding full support is going to be a painstaking tedious process. So
allow users to use this combination, but totally at their own risk.

TODO: Make SAGA provider a 3rd party plugin only and save QGIS core dev sanity ;)
2019-12-06 17:35:41 +10:00
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
Denis Rouzaud
d6644595c6
remove invokable because it is already used on another method with same name (#33247) 2019-12-06 07:55:11 +01:00
Nyall Dawson
567cdb3d2a Disable qgis_layerdefinition on CI
This test relies on an unreliable 3rd party service
2019-12-06 14:54:12 +10:00
Nyall Dawson
2dbc0d726f [FEATURE] Show html items to browser panel
Allows HTML files to be shown and opened from the browser panel
2019-12-06 14:39:08 +10:00
Nyall Dawson
7478e7973d Show helpful status bar tooltip informing of the current select tool behavior
whenever ctrl/shift/alt modifiers are changed during a selection operation
2019-12-06 14:38:09 +10:00
Nyall Dawson
6cd5ade937 Fix intermittently failing test (python was garbage collecting too early) 2019-12-06 13:17:53 +10:00
Juergen E. Fischer
46e6b2d376 azure pipelines: re-add poppler & doxygen 2019-12-06 00:36:16 +01:00
Juergen E. Fischer
81a08fd3e8 azure pipelines:
* fail on error
* align build name for pull requests more with travis builds
* include dash link on azure page
2019-12-06 00:34:01 +01: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
1e9709cf5b Don't try to style poly2tri library 2019-12-06 04:51:48 +10:00
Nyall Dawson
a9d02dab8b Update poly2tri external library (minor changes only) 2019-12-06 04:51:48 +10:00