53892 Commits

Author SHA1 Message Date
Matthias Kuhn
5b230ab820
Fix sip file too 2019-02-21 16:00:03 +01:00
oslandia
4a284b4986 Fixing typo 2019-02-21 14:55:11 +01:00
Luigi Pirelli
5a96fab775
Merge pull request #8968 from volaya/fix_saga_non_ascii
fixed handling of input filenames with non-ascii characters [processing]
2019-02-21 12:35:49 +01:00
volaya
52546db839 [processing] fixed saga test 2019-02-21 10:11:57 +01:00
volaya
40134d6473 [processing] fixed SAGA command writing and test 2019-02-21 10:05:46 +01:00
Matthias Kuhn
5292efd082
Merge pull request #9221 from m-kuhn/relation-reference-field-formatter-cache
Add cache for relation reference field formatter
2019-02-21 09:52:54 +01:00
Martin Dobias
3d99fd5a04 Make sure not to crash if there are no alternatives for right click 2019-02-21 08:53:12 +01:00
Martin Dobias
aec87a0a89 Fix issue with selection of vertices of locked feature (fixes #21283)
When user was coming with mouse to a vertex of the locked feature
from a different feature, it could happen that the vertex would not
get picked by vertex tool - this was because snapToEditableLayer()
keeps the last snap which would belong to a different feature, but
that feature was not allowed (blocking a new snap).

The fix makes sure that with a locked feature its matches always win.
2019-02-21 08:53:12 +01:00
Martin Dobias
7831f3ef23 Continue loop of locked features after mouse move
A small UX improvement: after right click in a location with feature A and B,
we would do a loop A - B - nothing - A - B - nothing ...
But if after first click to get A locked user would move the mouse a bit,
the loop would get broken and would end up with A - nothing - B - nothing - A - B - nothing
The fix is to identify where we are in the cycle and set the index correctly after mouse move.
2019-02-21 08:53:12 +01:00
Martin Dobias
6fd21c2f7c Do not keep highlight when locking/unlocking feature
It was a bit strange effect when locking feature... when moving mouse
over a feature it would have highlight, then on right click it would
also get vertex editor square markers in addition to the highlight, but
then immediately after mouse move the original highlight would be gone.
Now it's simplified so that feature highlight on right click gets removed.
2019-02-21 08:53:12 +01:00
Alessandro Pasotti
e42c6a3529
Merge pull request #9219 from elpaso/bugfix-21303-postgis-slow-table-open
Postgis: cache information about enum fields
2019-02-21 08:32:10 +01:00
Alessandro Pasotti
17280c3e4d
Merge pull request #9203 from elpaso/bugfix-21305-paste-slow-no-provider
Cache unique values when creating features
2019-02-21 08:31:41 +01:00
Matthias Kuhn
4d5dad8172
Merge pull request #9223 from m-kuhn/geometry_validator_summary_cleanup
Geometry validator summary cleanup
2019-02-21 07:53:54 +01:00
nirvn
9280a0717f Remove expression's not-yet-prepared warning 2019-02-21 09:35:06 +07:00
Anita Graser
8768989480 Update README_FONTS 2019-02-21 08:25:31 +10:00
Anita Graser
bcbeda44a7 Update README_FONTS 2019-02-21 08:25:31 +10:00
Alessandro Pasotti
dd7a5f5b1e
Merge pull request #9183 from Gustry/save_comments
keep comments when saving query, fix single line comment
2019-02-20 22:36:24 +01:00
Denis Rouzaud
89e3fce0f9
update model [vertex editor] (#9212)
* [vertex editor] update model

instead of erasing/creating each time

* do not save layer in model since it's already in the selected feature
2019-02-20 15:18:16 -05:00
Julien Cabieces
1c34329234 Allow expression widget to be empty so expression could be removed (#9032)
* fixes #20516 : Allow Constraint widget in attribute type form to be empty so expression could be removed

per widget modification

* correct tests

* Add the clear button on field expression widget when widget is allowed to be empty

* Change API since version to 3.6
2019-02-20 14:41:38 -05:00
Matthias Kuhn
9c0606148d
Adjust test 2019-02-20 19:11:13 +01:00
Matthias Kuhn
9f77b2dd23
Prepare expression and only request required pieces 2019-02-20 18:58:17 +01:00
Matthias Kuhn
5fe225bb4d
Add cache for relation reference field formatter
this speeds up tables with relation reference fields massively
2019-02-20 18:58:17 +01:00
Alessandro Pasotti
7627fb20fd Clear supports enum values cache when attributes change 2019-02-20 18:23:29 +01:00
Matthias Kuhn
968e08c6c9
Geometry validator: do not report result summary as error 2019-02-20 18:14:41 +01:00
Nyall Dawson
eceaea8c35 [layouts] Fix hidden coverage atlas setting is ignored when exporting atlas to images
Fixes #21243
2019-02-21 02:50:41 +10:00
Nyall Dawson
2609d9f057 Update test 2019-02-21 02:49:49 +10:00
Nyall Dawson
33aa63b855 Fix feature request containing a filter expression which needs
both geometry and the magic all attributes flag
2019-02-21 02:49:49 +10:00
Peter Petrik
b981c8a895 update to MDAL 0.2.0 (friendly release for QGIS 3.6) 2019-02-20 16:51:06 +01:00
Luigi Pirelli
b7776f55bb
Merge pull request #9107 from AchilleAsh/fix_20170_postgis_connection_recovery
Fix Postgresql connection reset not being called in PostgisProvider
2019-02-20 16:02:42 +01:00
Alessandro Pasotti
4f30a44be2 Postgis: cache information about enum fields
This is called several times and can slow down substantially
the opening of the attribute table.

Partially fixes #21303  (down from ~30 to ~6 seconds on a remote
connection)

The remaining ~4 seconds (compared to ~2 seconds in 2.18) are due
to the check for enums and provider-side  constraints, that were
not implemented in 2.18.

See: QgsEnumerationWidgetFactory::fieldScore and the call to
enumValues for details, fieldScore is called several times
because QgsAttributeTableModel::loadAttributes is also
called multiple times and it queries for widget configuration
all the times.
2019-02-20 15:02:50 +01:00
Matthias Kuhn
ddbd06f3f1
Merge pull request #9207 from mbernasocchi/master
Add safety guard when mDataProvider is not set
2019-02-20 14:02:16 +01:00
Matthias Kuhn
8ea09b61c8
Run sipify 2019-02-20 12:01:56 +01:00
Alessandro Pasotti
4250ef249a Removed redundant check for isValid 2019-02-20 10:29:01 +01:00
Alessandro Pasotti
2604fc70c5 Test for regression #21304 "default value" is not applied when pasting features 2019-02-20 10:17:09 +01:00
Alessandro Pasotti
bf1575f4c9 Also check for nulls when applying defaults
isValid is not enough because fields are initialized with
QVariant(field.type()) which is valid but null.

Fixes #21304

With test
2019-02-20 10:11:48 +01:00
Alessandro Pasotti
76c6ec8c1a Prevent crash when fields are deleted from the vector options dialog 2019-02-20 10:10:59 +01:00
Alessandro Pasotti
4c8280a5f8 Moved comment 2019-02-20 10:10:40 +01:00
nirvn
8eb1c4e8a0 [themes] Handle non-existent theme name setting in app stylesheet 2019-02-20 15:05:07 +07:00
Matthias Kuhn
64821661c9
Update src/core/qgsvectorlayer.cpp
Co-Authored-By: mbernasocchi <marco@opengis.ch>
2019-02-20 08:59:18 +01:00
Alessandro Pasotti
443d860061 Revert "Update src/core/qgsvectorlayerutils.cpp"
This reverts commit f4d7e73a545dcf2604b93f55f5b0030a5a29440a.
2019-02-20 08:42:17 +01:00
Nyall Dawson
f3cb3488ec Fix loss of precision when converting fields to uri in memory provider
Fixes #21316
2019-02-20 17:42:07 +10:00
Matthias Kuhn
707845d7d5
Updated docs for featureCount() 2019-02-20 08:33:39 +01:00
Matthias Kuhn
f4d7e73a54
Update src/core/qgsvectorlayerutils.cpp
Co-Authored-By: elpaso <elpaso@itopen.it>
2019-02-20 08:24:36 +01:00
Alessandro Pasotti
ff9a65c1b4
Merge pull request #9193 from elpaso/bugfix-21270-processing-algrunner-crash
Processing: fix crash in alg runner task with bad scripts
2019-02-20 07:43:50 +01:00
Matthias Kuhn
9c888bb30e Update tests/src/python/qgis_wrapped_server.py
Co-Authored-By: elpaso <elpaso@itopen.it>
2019-02-20 13:38:40 +10:00
Alessandro Pasotti
cf5533e06e Revert "remove 'multithreading is not supp in server text'"
This reverts commit 6c1036c5c0634a0381b17b03472ab012faefec58.
2019-02-20 13:38:40 +10:00
Nyall Dawson
7acfefadad Fix infinite progress when an algorithm could not be created 2019-02-20 13:05:13 +10:00
Nyall Dawson
979adbbabf Indicate exception types to sip
Exposes the full Python exception when an error occurs in createInstance()
2019-02-20 13:05:09 +10:00
Julien Cabieces
627230c10a fixes #18421 : Keep options AUTO_REPACK=OFF when reloading data in ogr provider 2019-02-20 11:48:11 +10:00
Panos Mavrogiorgos
c8d3f74f4a [grass7][mac] Use the most recent GRASS version
This is a continuation of:

- #8db3dead87e385f2798356d
- #5c97d22b16320874dbe1

This commit only affects users that have multiple GRASS installations on
their Macs. Using the most recent GRASS version is what we do on Linux too.
2019-02-20 11:14:06 +10:00