65876 Commits

Author SHA1 Message Date
Salvatore Larosa
b696b465ab Fix indentation (which doing start up of python console very slow) 2020-09-20 06:47:11 +10:00
Alessandro Pasotti
3e5be258cb Spellcheck 2020-09-19 12:36:19 +02:00
Alessandro Pasotti
2dfc072fe7 Spellchecker, how picky you are 2020-09-19 11:30:55 +02:00
Alessandro Pasotti
d54c3101ae Add feedback to executeSql
Fixes #38092 by adding an optional QgsFeedback argument to
the executeSql method and by implementing the PQCancel
method in the PG provider internals.

While the cancellation works well for all supported provider while
fetching results in the loop, the cancellation of a running query is now
implemented for the postgres provider connection only because the GPKG
and GDAL both rely on GDALDatasetExecuteSQL which cannot be interrupted.

This PR also introduce a few optimizations in the PG DB-Manager
code that should probably fix also other "slowness" issues that
were reported after 3.x during PG query execution.

A small UX change in th SQL dialog makes it evident to the user that
a cancellation request has been sent to the backend: the button text
is changed to "Cancellation requested, please wait..." so that for
provider connections that are not able to interrupt the running query
and must wait for the fetching loop to exit from the exeuteSql call
the user knows that something is happening and that a cancellation
request has been successfully sent.
2020-09-19 11:15:41 +02:00
Peter Petrik
640f046c1c hide splash screen when loading the project 2020-09-19 08:56:52 +10:00
vcloarec
083cb88c60 fix crash if MDAL not available 2020-09-19 08:54:46 +10:00
Paul Blottiere
4113fdc58c
Merge pull request #38856 from pblottiere/pyogctest_v101
Update pyogctest to v1.0.1
2020-09-18 13:12:47 +02:00
Blottiere Paul
74610f9dc6 Update pyogctest to v1.0.1 2020-09-18 11:36:05 +02:00
Nyall Dawson
73626bdcd9 Initialize members 2020-09-18 11:50:27 +10:00
Nyall Dawson
fe70bb2440 Dox 2020-09-18 11:50:27 +10:00
Nyall Dawson
c293d2c60d [sipify] Correctly collapse TypeHint annotations 2020-09-18 11:50:27 +10:00
Nyall Dawson
8ea72bb9eb Fix build 2020-09-18 11:50:27 +10:00
Nyall Dawson
fe5615ea44 Hold the GIL for more geometry related methods 2020-09-18 11:50:27 +10:00
Alessandro Pasotti
3d67b37b4a Add missing import for new test 2020-09-18 11:06:20 +10:00
Alessandro Pasotti
67b5540263 Fix PG trust metadata layer loading
Fixes #38809

Followup 760347c3b6a95129db677a1915d90190779eaad5
2020-09-18 11:06:20 +10:00
Even Rouault
3d0a14e1dc VectorFileWriter/OGR provider: workaround GDAL 3.1.x bug regarding XLSX and ODS creation
GDAL 3.1.0 to 3.1.3 will create XLSX and ODS files with ZIP64 extensions,
which make them incompatible of current LibreOffice versions.

This has been fixed in GDAL now, but this can be workaround on QGIS side too
if using those buggy versions.
2020-09-18 11:05:46 +10:00
Blottiere Paul
dd9e0ba5ae Keep cached status up to date. Fixes #37326 2020-09-18 11:01:14 +10:00
Peter Petrik
24cfedf03f fix #32511 always detect GRASS installation folder on MacOS 2020-09-18 10:56:44 +10:00
Julien Cabieces
f1f14e49e3 Fixes #37038: Fix drag and drop field order in designer 2020-09-18 10:55:17 +10:00
Even Rouault
fbe56750b4 Coordinate operation widget: avoid repeating scope and remarks
For coordinate operations that are not concatenated operations, we
currently display twice the scope and remarks. Let's strip a bit of
text to avoid confusing users even more :-)
2020-09-18 10:54:22 +10:00
Matthias Kuhn
9e654ca388
Merge pull request #38641 from domi4484/mssqldefaultvalues
Implemented method QgsMssqlProvider::defaultValue
2020-09-17 22:22:39 +02:00
Nyall Dawson
44fb4f5f85 Dox 2020-09-18 04:34:57 +10:00
Nyall Dawson
d4a2dddac5 Tag some inexpensive, frequently called methods with the HoldGIL annotation
This prevents the Python GIL from being released before calling the method
(which is the default behaviour). For very cheap to call c++ methods the
cost of releasing the GIL can outweigh the cost of the c++ call, which means
it's more efficient to retain the hold on the GIL.

Ideally we'd do this everywhere, and switch to an explicit ReleaseGIL
annotation on functions which are slow or risky (raise exceptions, or
do something which can cause a GIL deadlock). But those are very tricky
to identify, so instead just explicitly hold the gil on cheap methods
which are likely to be called many times and could have an impact on
script performance.
2020-09-18 04:34:57 +10:00
Even Rouault
cc70b9f9c1
Merge pull request #38769 from rouault/fix_38298
[GUI] Raster histogram: restore behavior before #35465 changes
2020-09-17 15:10:41 +02:00
Matthias Kuhn
8609a729c6
Merge branch 'master' into mssqldefaultvalues 2020-09-17 14:28:54 +02:00
Denis Rouzaud
527a08ca5e
fix merge conflict (#38835) 2020-09-17 14:18:19 +02:00
Alessandro Pasotti
8ed98f64fd
Merge pull request #38815 from elpaso/bugfix-gh38716-marker-line-dd-angle
Set the line angle instead of the symbol angle
2020-09-17 12:25:33 +02:00
nirvn
d03e172838 [themes] Fix night mapping checkbox glitches when embedded into table (et cie) widgets 2020-09-17 16:46:26 +07:00
nirvn
52c31437bb [themes] Fix blend of gray checkbox glitches when embedded into table (et cie) widgets 2020-09-17 16:46:26 +07:00
Nyall Dawson
c44178f517 Fix seealso link 2020-09-17 19:10:52 +10:00
Nyall Dawson
49e9b613b8 [layouts] Keep a separate flag for whether only a subset of layers
are to be clipped from the project, instead of just tracking this
by the presence of any checked layers

Avoids inconsistencies between the layers which are visibly clipped
on the map vs the options which are set in the GUI.
2020-09-17 19:10:52 +10:00
Peter Petrik
fce4b27644
fix #35147 QgsMeshLayer map canvas rotation rendering (#38795)
fix #35147 QgsMeshLayer map canvas rotation rendering
2020-09-17 10:44:58 +02:00
Denis Rouzaud
5ca4ef8f3d
QgsField::ConfigurationFlags: use a negative form for the flags so th… (#38805)
* QgsField::ConfigurationFlags: use a negative form for the flags so that default flags is None

this will make this futureproof, so newly added flags won't cause trouble for compatibility with old projects

* follow up

* remove template class

* fix order of init

* follow up

* Revert "update test projects (open and save)"

This reverts commit c738609d9177ed398ba2a0ae0e1c16448accd5f6.

* DoNotExposeVia -> HideFrom
2020-09-17 10:31:22 +02:00
Alessandro Pasotti
7f92487454
Merge pull request #38816 from elpaso/bugfix-landingpage-wfsexposed
Update tests and fix wfs exposed fields list
2020-09-17 10:07:02 +02:00
Alessandro Pasotti
d66d2b655e
Merge pull request #38764 from elpaso/bugfix-gh38558-server-wfst-1.1.0-wrong-case
Fix server WFS-T 1.1.0 wrong case in transaction response
2020-09-17 10:06:29 +02:00
Alessandro Pasotti
247a399901 Add test for issue #38716 2020-09-17 09:42:51 +02:00
nirvn
445d78f7cc Add a plugin interface to add pages to the project properties dialog 2020-09-17 13:48:57 +07:00
Nyall Dawson
965595d25b [processing] Fix certain characters show as HTML escaped in processing log
Fixes #37934
2020-09-17 16:38:34 +10:00
Nyall Dawson
92d0ec59a1 [hig] Fix incorrect capitalization in title of new layout name dialog 2020-09-17 16:16:27 +10:00
Juergen E. Fischer
b20f57f0a5 translation string fixes 2020-09-17 08:12:14 +02:00
Juergen E. Fischer
0f2b53c949 osgeo4w: avoid placing grass' rstudio path in front of osgeo4w qt 2020-09-17 08:12:14 +02:00
Juergen E. Fischer
934d81c708 fix warnings 2020-09-17 08:12:14 +02:00
Juergen E. Fischer
8ee86d01a8 remove duplicate trailing ; 2020-09-17 08:12:14 +02:00
Juergen E. Fischer
b3e7230ac2 mssql provider:
* add missing support for non-integer and compound keys
* update unit tests
* unify time handling: iterator / minimumValue / maximumValue / uniqueValues
2020-09-17 08:12:14 +02:00
Nyall Dawson
484ba6f979 [labeling] Add a new capitalization option for "Title Case", and
rename the confusing "Capitalize First Letter" option to
"Force First Letter to Capital"

This change is intended to clarify the role of the "capitalize
first letter" option, and to provide an option which actually
does what users expect the "capitalize first letter" option
to do.

Fixes #16539
2020-09-17 09:33:51 +10:00
Nyall Dawson
6bd3dc54f8 Title case conversion works correctly on all uppercase string inputs 2020-09-17 09:33:51 +10:00
Even Rouault
ae71913cd3 UI: better information message when toggling off edition mode on a transaction group
Previously, we always displayed the name of the layer we toggled off, even if
it was not modified, which could be confusing.
Now we will display up to two layer names that have been modified.
2020-09-17 09:30:40 +10:00
Even Rouault
92ed4509fb Transaction and Geopackage datasets: make it work when the layer whose edition is turned off hasn't been modified (fixes #38697)
We cannot use QgsDataSourceUri::connectionInfo() as it returns an empty string
for OGR datasources. So use QgsTransaction::connectionString() as in other places.
2020-09-17 09:30:21 +10:00
Peter Petrik
cbdda422b0 fix segmentation fault 11 on MacOS during closing QGIS 2020-09-17 09:24:02 +10:00
Julien Cabieces
7bd1017df7 Fixes #37503 : add actions to the tableview so they triggered by shortcut 2020-09-17 09:23:22 +10:00