24013 Commits

Author SHA1 Message Date
Denis Rouzaud
e4b2d591db
access dynamic key part list for editor wrappers 2024-10-09 12:10:25 +02:00
Denis Rouzaud
f7a191519e
fix mixup 2024-10-09 12:08:45 +02:00
Denis Rouzaud
d9296002fd
fix import 2024-10-09 07:19:55 +02:00
Denis Rouzaud
69993b4836
Python implementation of enum settings editor widget wrapper 2024-10-08 22:40:41 +02:00
Denis Rouzaud
08aeb133a0
use a custom type id for python implementation
otherwise, QgsSettingsEditorWidgetRegistry is creating a wrapper for this setting type and expects the cpp implemetnation
(QgsSettingsEntryBaseTemplate and not QgsSettingsEntryBase)
2024-10-08 22:19:49 +02:00
Nyall Dawson
8a61127bd0 Fix exception with older shapely versions 2024-10-08 14:33:57 +10:00
qgis-bot
95dae189f5 auto sipify 🍺 2024-10-07 23:16:48 +00:00
Germán Carrillo
0c7ea8f4b8 Address review: move qgsLessThanMaximumScale and qgsEqualToOrGreaterThanMinimumScale functions to QgsScaleUtils 2024-10-08 09:13:34 +10:00
Germán Carrillo
dd907d6bdf [core] Introduce functions qgsLessThanMaximumScale and qgsEqualToOrGreaterThanMinimumScale to make robust checks between map scale and maximum/minimum rendering scales in a scale dependent visibility context, taking non-round scales (denominators) 2024-10-08 09:13:34 +10:00
Germán Carrillo
490b47daf0 [core] Mark Qgis::SCALE_PRECISION as deprecated, since scale dependent visibility became more robust on range limits (namely, on non-round numbers). 2024-10-08 09:13:34 +10:00
qgis-bot
d7985db12b auto sipify 🍺 2024-10-07 16:11:08 +00:00
Denis Rouzaud
5f18ff84a2
make QgsVectorTilesUtils available to Python bindings (#58989) 2024-10-07 18:07:48 +02:00
qgis-bot
2febb72730 auto sipify 🍺 2024-10-07 11:58:50 +00:00
Denis Rouzaud
c75588d84a settings edtior wrappers: add direct constructor + add combo box editor for strings
this improves the usage from Python plugins
2024-10-07 13:55:31 +02:00
qgis-bot
789fd9c3b7 auto sipify 🍺 2024-10-07 07:36:05 +00:00
Nyall Dawson
594b466160 [api] Allow sink flags to be specified for QgsVectorFileWriterTask 2024-10-07 09:32:46 +02:00
Andrea Giudiceandrea
fefba6c472 Fix typos in QgsUnitTypes 2024-10-07 09:15:30 +02:00
qgis-bot
7a16fc4efb auto sipify 🍺 2024-10-07 05:27:55 +00:00
Denis Rouzaud
ec839e9d7c
rename settings editor widget wrappers (#58974)
to allow more than 1 widget type to be supported for each type of setting
2024-10-07 07:24:40 +02:00
qgis-bot
3299ab193b auto sipify 🍺 2024-10-03 09:49:27 +00:00
Nyall Dawson
94ec0d9139 QgsMapLayer::setDataSource don't require layer name, provider
Make them optional, and default to current layer name/provider
when not specified
2024-10-03 19:46:08 +10:00
qgis-bot
88c4e3fb19 auto sipify 🍺 2024-10-03 02:52:33 +00:00
Nyall Dawson
a7a5f972ae Add render context flag to always disable symbol clipping 2024-10-03 12:49:18 +10:00
Tom Kralidis
afb31e66a5 do not translate log messages 2024-10-03 12:40:51 +10:00
Tom Kralidis
e9695d8007 update string translation 2024-10-03 12:40:51 +10:00
Tom Kralidis
e421f08331 add default 2024-10-03 12:40:51 +10:00
Tom Kralidis
f0d9167455 add default 2024-10-03 12:40:51 +10:00
Tom Kralidis
ee2c16c50b MetaSearch: add logging 2024-10-03 12:40:51 +10:00
qgis-bot
8f4da32b6b auto sipify 🍺 2024-10-02 22:13:35 +00:00
Martin Dobias
b02813e657 Add API to temporarily disable updates in 3D map scene
This is useful for debugging 3D views, to pause scene updates and
inspect some parts of the scene in detail.
2024-10-03 08:09:04 +10:00
qgis-bot
b47c3781c9 auto sipify 🍺 2024-10-02 01:16:52 +00:00
Nick Bowsher
9a08f1097a
[feature] Add extra mesh layer legend node for currently displayed vector datasets 2024-10-02 11:13:40 +10:00
qgis-bot
56b6dc7ed2 auto sipify 🍺 2024-10-02 00:39:14 +00:00
Nyall Dawson
52226f0b9c Mark models as security risk if they contain algs with security risks 2024-10-02 10:36:00 +10:00
Nyall Dawson
578aa207d0 Show warning when loading batch params for algs with security risk
If the algorithm has the security risk flag, warn the user before
they can open stored batch parameter files
2024-10-02 10:36:00 +10:00
Nyall Dawson
2fdb2cad80 Add processing algorithm flag for SecurityRisk
And add to "Advanced Python field calculator" algorithm, as that
algorithm uses the Python exec() function and is a security
risk if run with untrusted/unchecked inputs
2024-10-02 10:36:00 +10:00
Denis Rouzaud
4afbf9e1bb const fixes 2024-10-02 07:05:46 +10:00
Nyall Dawson
0d55518c24 [processing] Fix translation of elapsed strings
Fixes #58635
2024-10-01 20:30:39 +10:00
Nyall Dawson
6c1de7f70a [processing] Replace format for saving batch processing parameters
The older approach of storing parameters was insecure, and required
eval()ing the unchecked contents of the batch parameter file. This
is a security risk, as a malicious file could leak user information
or damage the system.

So,

- Switch to a newer ".batch" format which uses safe JSON objects
only for serializing parameter values.
- Allow loading the older .json files, but first show a warning
that they are a security risk and require to user to explicitly
agree to open the file
2024-10-01 19:35:51 +10:00
Nyall Dawson
95c9bb56b2 Remove unused code 2024-10-01 19:35:51 +10:00
Julien Cabieces
b264c34245 fix(ColorProject): Add new methods in sql_dictionary 2024-10-01 14:03:55 +10:00
Julien Cabieces
6c2c9b7750 feat(Expression): Add project_color_object function
Which contrary to project_color doesn't return a string
representation there is no rgb conversion involved
2024-10-01 14:03:55 +10:00
Florian Neukirchen
dd4f71c1f3 Fix indentation 2024-10-01 08:36:59 +10:00
Florian Neukirchen
b8ca25da95 value field must be numeric 2024-10-01 08:36:59 +10:00
Florian Neukirchen
1fd614b0ef Fix AttributeError: module 'plotly.graph_objs' has no attribute 'Area': it is go.Barplot in recent plotly versions 2024-10-01 08:36:59 +10:00
Germán Carrillo
771b03348f [core] Fix restoring projects using stacked bar diagrams 2024-10-01 07:25:50 +10:00
merydian
a7621a2e54 Use QByteArray.data() for as_shapely 2024-09-30 13:22:21 +10:00
merydian
bb6ec91291 Improve performance of as_shapely
By utilizing QgsGeometry.asWkb() this is ~8.45 times faster than the previous implementation.
2024-09-30 13:22:21 +10:00
merydian
82772b7865 Place shapely related things in separate try statement 2024-09-30 13:22:21 +10:00
merydian
bbf6bc5e11 Implement QgsGeometry.as_numpy and .as_shapely 2024-09-30 13:22:21 +10:00