19785 Commits

Author SHA1 Message Date
Alessandro Pasotti
34c5cdcf2d Handle fid and geom cols in GPKG exec sql 2021-07-06 20:58:35 +02:00
Alessandro Pasotti
cf260226a3 Create SQL layer and widget config based on enum 2021-07-06 20:56:07 +02:00
Alessandro Pasotti
af44d35d74 Doxy 2021-07-06 20:53:59 +02:00
Alessandro Pasotti
9adbdfa8bf Fix crash QsciAPIs is destroyed while worker running 2021-07-06 20:53:59 +02:00
Alessandro Pasotti
4201942bdd Rebase 2021-07-06 20:53:59 +02:00
Alessandro Pasotti
1a94b07454 Better error handling/reporting 2021-07-06 20:53:59 +02:00
Alessandro Pasotti
9fc81ffb0f Move to thread the first phase of the query (before the iterator) 2021-07-06 20:53:59 +02:00
Alessandro Pasotti
b988ca87e2 SQL results widget: add query layers support (initial) 2021-07-06 20:53:59 +02:00
Alessandro Pasotti
cc709a0d02 Query result widget files and tests 2021-07-06 20:52:19 +02:00
Alessandro Pasotti
079264ebc4 Message bar and other improvements: working! 2021-07-06 20:52:19 +02:00
Alessandro Pasotti
d914a50b63 QgsQueryResultWidget 2021-07-06 20:52:19 +02:00
Nyall Dawson
81ecf97d0f Fix PyQGIS docs formatting of QgsAbstractDatabaseProviderConnection class 2021-07-06 18:13:58 +10:00
Nyall Dawson
129ab50607 Add QgsProviderSublayerProxyModel for filtering/sorting
QgsProviderSublayerModel instances
2021-07-06 17:57:21 +10:00
Nyall Dawson
73f45ee467 Allow non sublayer items to be added to QgsProviderSublayerModel
E.g. embedded project items
2021-07-06 17:57:21 +10:00
Nyall Dawson
288321505a Start on sublayer model 2021-07-06 17:57:21 +10:00
mhugent
ec374d5ad2
Merge pull request #43927 from mhugent/raster_legend_placeholder_icon
Feature: possibility to use placeholder icon in legend for raster layer. funded by [Canton of Glarus] [https://www.gl.ch/verwaltung/bau-und-umwelt/hochbau/raumentwicklung-und-geoinformation/geoportal-kanton-glarus.html/808]
2021-07-03 15:12:18 +02:00
Nyall Dawson
39fbd77df7 Add API to export layers to QLR with easy control over whether
absolute or relative paths are used
2021-07-03 06:39:36 +10:00
Nyall Dawson
ee141a1a8e Add enum Qgis::FilePathType and add proper stable api for setting
whether QgsProject uses absolute or relative paths for file storage
2021-07-03 06:39:36 +10:00
Marco Hugentobler
f287872798 Use application image cache 2021-07-02 13:21:49 +02:00
Marco Hugentobler
b7b9470a68 Possibility to select an image as legend placeholder 2021-07-02 13:20:10 +02:00
Marco Hugentobler
991f935944 Feature: possibility to use placeholder icon in legend for raster layer 2021-07-02 13:20:10 +02:00
Nyall Dawson
c8156b0106 Add c++20 todo for replacing equality operators with default implementations 2021-07-02 12:19:58 +10:00
Nyall Dawson
65bccd2c61 Add equality operator for QgsProviderSublayerDetails 2021-07-02 12:19:58 +10:00
Nyall Dawson
ced5910bc8 Fix race 2021-07-02 09:49:33 +10:00
Nyall Dawson
7dec3050f6 Fix dox 2021-07-02 09:49:33 +10:00
Nyall Dawson
1355b39be0 Add QgsProviderUtils with a method for determining whether a list
of sublayer details is incomplete and requires a more in-depth scan
2021-07-02 09:49:33 +10:00
Nyall Dawson
bed72156f7 Dox 2021-07-02 09:49:33 +10:00
Nyall Dawson
7c6afc0761 Create QgsProviderSublayerTask for retrieving sublayer details in a thread
This can sometimes take a looooong time, so it's worth doing in the
background
2021-07-02 09:49:33 +10:00
Nyall Dawson
a51a9c4854 Add QgsIconUtils::iconForLayerType 2021-07-01 17:37:52 +10:00
Vincent Cloarec
db21851bbb
[mesh] mesh frame editing part-2 - start, commit, roll back and cancel (#43982)
[mesh] allows the user of mesh layers to start editing, save, roll back or cancel editing, in the same way as vector layers (editing part-2)
2021-07-01 08:18:18 +02:00
Nyall Dawson
174d5ee9e0 Ensure python script files saved in the Python console editor use
.py file extension
2021-07-01 15:40:20 +10:00
Alessandro Pasotti
8835b2d05e
Merge pull request #43617 from troopa81/fix_htmlwidget_geom
Set up cache geometry if HTML widget needs it
2021-06-30 10:49:37 +02:00
Nyall Dawson
d6709e0145 Fix docs, better check 2021-06-29 07:33:35 +10:00
Nyall Dawson
0565c3ffb8 Retain more renderer properties when switching between vector
renderer types
2021-06-29 07:33:35 +10:00
Nyall Dawson
849819cd0d [api] Allow reference scale for vector layer renderer to be set
Gives a means of setting the reference scale for a vector layer
renderer, so that symbol sizes in the rendered layer will be
scaled accordingly depending on the actual scale of the
rendered map.
2021-06-29 07:33:35 +10:00
Nyall Dawson
c8da0c43f9 Safer approach to saving common QgsFeatureRenderer properties 2021-06-29 07:33:35 +10:00
Nyall Dawson
54610b293c [api] Allow a symbology reference scale to be set on a QgsRenderContext
This should match the desired scale denominator for the rendered map,
eg 1000.0 for a 1:1000 map render. Set (by default) to -1 to disable
symbology scaling by reference scale.

The symbology reference scale is an optional property which specifies
the reference scale at which symbology in paper units (such as
millimeters or points) is fixed to. For instance, if \a scale is set
to 1000 then a 2mm thick line will be rendered at exactly 2mm thick
when a map is rendered at 1:1000, or 1mm thick when rendered at
1:2000, or 4mm thick at 1:500.
2021-06-29 07:33:35 +10:00
nirvn
19eaec7436 [processing] Clear python command in history dialog when selecting a non-algorithm item (i.e. folder) 2021-06-28 00:15:40 -07:00
nirvn
a777ba8a26 [ui][processing] Fix broken enter key showing help instead of running algorithm in history dialog 2021-06-28 00:15:40 -07:00
nicogodet
681ff42938 exit fillTree() if no log entries 2021-06-28 06:44:31 +10:00
Paul Blottiere
ba75f371ba
Merge pull request #43923 from nicogodet/fix-since-39211
Correct since indent legend (follow #39211)
2021-06-25 16:39:26 +02:00
Vincent Cloarec
d326d38660
[mesh] mesh frame editing part-1 (qgis_core) (#43828)
[feature] qgis_core changes to allow mesh layer editing (part-1 or QEP#228)
2021-06-25 16:17:13 +02:00
nicogodet
ff388dc733 Correct since indent legend (follow #39211) 2021-06-25 11:47:50 +02:00
Matthias Kuhn
4d27183715
Merge pull request #39211 from jdugge/indent_legend_groups
[FEATURE] Indentation of legend groups and subgroups
2021-06-25 09:14:32 +02:00
Nyall Dawson
8c9d008413 Spelling 2021-06-25 13:53:52 +10:00
Nyall Dawson
2d489737e2 [feature] Add a "redraw layer only" temporal mode for raster layers
Just like the equivalent setting for vector layers, this option
causes a raster layer to be redrawn on each new animation frame. It's
useful when the layer uses time-based expression values (e.g. data
defined renderer opacity, to fade/in out a raster layer)
2021-06-25 13:53:52 +10:00
Nyall Dawson
2a9c32bb9c [feature] Expose data defined control over raster layer opacity
Allows the opacity of a raster to be varied e.g. on different
pages of an atlas, depending on the visibility of another layer,
by temporal variables, etc...
2021-06-25 13:53:52 +10:00
Nyall Dawson
c013c78285 [api] Attach QgsPropertyCollection to QgsRasterPipe to allow
for data-defined raster pipeline properties
2021-06-25 13:53:52 +10:00
Nyall Dawson
3c3059c938 Fix code example blocks in QgsFeature documentation 2021-06-25 10:50:04 +10:00
Nyall Dawson
711a615be3 Fix raises sphinx format 2021-06-25 10:50:04 +10:00