18175 Commits

Author SHA1 Message Date
Nyall Dawson
ab6bbfda1d Fix all remaining Qt QFlags deprecated constructor warnings 2020-10-02 13:04:49 +10:00
nirvn
9d105d9d59 [layer tree] Avoid needless layer tree model computations for scale-based layer visibility 2020-09-29 06:25:02 +07:00
Salvatore Larosa
e17913c6ea [pyqgis-console] add search icon to filterlineedit 2020-09-27 11:14:38 +02:00
Salvatore Larosa
a2fb7f3eeb [pyqgis-console] change message bar to Warning 2020-09-27 04:55:13 +10:00
Salvatore Larosa
1760e26a3a [pyqgis-console] warn user to generate personal access token 2020-09-27 04:55:13 +10:00
Salvatore Larosa
4347e81202 [pyqgis-console] adress some comment: add button to link at generate token page 2020-09-27 04:55:13 +10:00
Salvatore Larosa
eee29257bd [pyqgis-console] use QgsBlockingNetworkRequest to create Gist 2020-09-27 04:55:13 +10:00
Salvatore Larosa
c92e873815 [pyqgis-console] using gist to share snippets instead of codepad 2020-09-27 04:55:13 +10:00
uclaros
9953570e30 Added method to clear all individual layer settings in QgsSnappingConfig 2020-09-26 10:30:13 +10:00
Alessandro Pasotti
eb3c78d12d DB manager fix add comment while creating table
Fixes #38394
2020-09-25 10:56:13 +02:00
Alexandre Neto
279c499bb1 Fix QgsProcessingParameterNumber docstring example
(cherry picked from commit 66011b22ce181c93aebeda1f0c320f254a67ca30)
2020-09-25 10:58:12 +10:00
Alessandro Pasotti
3b6178ad3b
Merge pull request #38981 from elpaso/bugfix-gh38975-and-other-db-manager-issues
Bugfix gh38975 and other db manager issues
2020-09-24 18:42:56 +02:00
Alessandro Pasotti
871f534ef9 Fix PG db-manager rename schema
Fixes #38998
2020-09-24 14:23:26 +02:00
Andrea Giudiceandrea
e7e08fd504 Fix grassname of raster layer bands in r_rgb.py 2020-09-24 18:45:59 +10:00
Mathieu Pellerin
931136879c
[processing] Make batch process faster (#38989) 2020-09-24 12:34:59 +07:00
Alessandro Pasotti
83525abd5c Respect scale lock when panning/zooming the map
Fixes #38953 and #38417
2020-09-24 09:04:36 +10:00
Alessandro Pasotti
9880a751a9 DB manager Fix SHOW in PG queries
Fixes #8975
2020-09-23 15:14:04 +02:00
zhanggaolei
3119eb7de2 fixed #38938 Wrong GRASS processing description files 2020-09-23 18:26:40 +10:00
Nyall Dawson
c3a26db4ba [layouts] When selecting a CRS for a map item, don't show misleading
"no crs" option at the top of the dialog.

Instead, correctly label this option as "Use project CRS", which
is what it actually means.
2020-09-23 14:13:35 +10:00
Nyall Dawson
c68d05cc40 Improve misleading/confusing API, and fix "layer has no CRS" message
incorrectly show at the top of many projection selection dialog boxes
2020-09-23 14:13:35 +10:00
Nyall Dawson
05c25194d1 Also use splitter in QgsProjectionSelectionDialog 2020-09-23 14:13:35 +10:00
Nyall Dawson
8dd75cc9cc [layouts] Improve UI for formatting manual table cells
Instead of the confusing duplicate settings for foreground color
vs cell text color, remove the foreground color button and only
expose this color setting via the cell text color.
2020-09-23 03:15:28 +10:00
Salvatore Larosa
8e9bf8bf49
Merge pull request #38917 from slarosa/fix_console_byte
[pyqgis-console] fix byte conversion
2020-09-22 17:15:05 +02:00
Alessandro Pasotti
063b8daab3
Merge pull request #38940 from elpaso/bugfix-gh38092-executesql-feedback-followup
Be smart when adding limit: followup #8092
2020-09-22 11:32:27 +02:00
Alessandro Pasotti
ef02c54252 Be smart when adding limit: followup #8092 2020-09-22 09:26:13 +02:00
Juergen E. Fischer
a15fff158a Translation string fix 2020-09-22 09:12:15 +02:00
Nyall Dawson
f3f226aa69 In cases where we cannot convert the map extent back to a layer's
extent and have had to resort to fetching all features from a layer,
defer the geometry clipping the map extent so that it occurs
AFTER transforming the layer's geometries to the target map extent.

This allows us to correctly clip the feature geometries in the case
that the visible extent available from the render context for the layer
is not accurate (i.e. it's a whole of globe fallback), and avoids
rendering features which fall far outside of the visible map
region.

Fixes #38878
2020-09-22 06:50:34 +10:00
Nyall Dawson
9990b84bdb Add QgsClipper::clippedLine variant which accepts a QPolygonF line
input
2020-09-22 06:50:34 +10:00
Salvatore Larosa
bc71fae005 [pyqgis-console] fix byte conversion 2020-09-21 17:19:57 +02:00
Alessandro Pasotti
1c1febc0d6
Merge pull request #38870 from elpaso/bugfix-gh38092-executesql-feedback
Add feedback to executeSql
2020-09-21 15:45:21 +02:00
Alessandro Pasotti
6d866e3341 Address PR comments 2020-09-21 14:02:24 +02:00
Nyall Dawson
620948f809 Add method to change capitalization of QgsTextDocument 2020-09-21 12:05:54 +10:00
Nyall Dawson
772181bc16 [processing] Don't assume iface is available
E.g. in qgis_process iface is None

Fixes #38862
2020-09-21 12:05:34 +10:00
Nyall Dawson
ed6e9ac84c Dox++ 2020-09-21 11:05:34 +10:00
Etienne Trimaille
6076950c68 Add help string for parameters in Processing 2020-09-21 11:05:34 +10:00
Matthias Kuhn
2eaf5e6d29 Recalculate layout when legend item size changes
Fixes https://github.com/qgis/QGIS/issues/38881
2020-09-21 08:03:16 +10:00
Matthias Kuhn
673d6727ee Improve legend performance
Only recalculate the position of the icons for affected legend nodes.
Avoids brute forcing over complex legends as soon as something is changed.

Fixes #38890
2020-09-21 08:02:13 +10:00
benjaminwheel3r
96bdfac88d Update Comment Typos
update 'the' to 'then' on line 34
update 'customwidget' to 'custom widget' to match reference in comment on line 72
Update 'windows' to 'Windows' on line 65 to match previous reference on line 31
2020-09-20 06:57:20 +10:00
Salvatore Larosa
b696b465ab Fix indentation (which doing start up of python console very slow) 2020-09-20 06:47:11 +10: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
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
fe5615ea44 Hold the GIL for more geometry related methods 2020-09-18 11:50:27 +10:00
Peter Petrik
24cfedf03f fix #32511 always detect GRASS installation folder on MacOS 2020-09-18 10:56:44 +10: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
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