Julien Cabieces
e8093a8ce5
Only mock non class enums
2023-12-13 05:36:44 +10:00
Julien Cabieces
7f586d8742
PyQt6 sip files
2023-12-13 05:36:44 +10:00
Nyall Dawson
545a87b633
Doxygen
2023-12-12 19:40:18 +10:00
Nyall Dawson
38691bff84
Expose method to directly convert json object to QVariantMap
...
All the existing methods require intermediate steps through
encoded strings, which is inefficient if we already have a json
object
2023-12-12 19:40:01 +10:00
Nyall Dawson
5171e0597a
Ensure more specialised exceptions are raised in PyQGIS
...
instead of the generic QgsException one
Refs warning in https://github.com/qgis/QGIS/issues/55481#issuecomment-1849001802
```
/tmp/work/geography/qgis/work/qgis-3.28.13/build/python/core/build/_core/sip_corepart0.cpp:38168: warning: exception of type 'QgsProviderConnectionException' will be caught
38168 | catch (QgsProviderConnectionException &sipExceptionRef)
|
/tmp/work/geography/qgis/work/qgis-3.28.13/build/python/core/build/_core/sip_corepart0.cpp:38158: warning: by earlier handler for 'QgsException'
38158 | catch (QgsException &sipExceptionRef)
```
2023-12-12 09:57:48 +01:00
Julien Cabieces
0884f5c0ce
Build PyQt6 with c++ 17
2023-12-12 09:36:27 +10:00
bdm-oslandia
3707510ede
fix(Qgs3DMapScene): add const to const member functions
2023-12-12 07:38:31 +10:00
Jean Felder
e0466ab5eb
plugins/tests: Port to QgisUnitTests
...
`unittest.TestCase` is deprecated.
2023-12-12 05:27:30 +10:00
Nyall Dawson
b757ca0770
Don't install description_to_json file
2023-12-08 19:35:06 +10:00
Nyall Dawson
67757ec349
Don't check in algorithms.json
2023-12-08 19:35:06 +10:00
Nyall Dawson
f6ff3718ea
Don't require manual execution of description_to_json, run during cmake
...
instead
2023-12-08 19:35:06 +10:00
Nyall Dawson
ee210c018c
Reformat files
2023-12-08 19:35:06 +10:00
Nyall Dawson
208c4e6919
Translate at runtime only
2023-12-08 19:35:06 +10:00
Nyall Dawson
669335d9ef
Fix ext folder
2023-12-08 19:35:06 +10:00
Nyall Dawson
98e8bcce5c
Install aggregated json GRASS definitions instead of .txt files
2023-12-08 19:35:06 +10:00
Nyall Dawson
b7800f22ac
Allow creating GRASS algorithms from JSON definitions
2023-12-08 19:35:06 +10:00
Nyall Dawson
eb41d18c6f
Add ext path to json
2023-12-08 19:35:06 +10:00
Nyall Dawson
356cbcbe10
Add script to create json version of aggregated grass txt description files
2023-12-08 19:35:06 +10:00
Nyall Dawson
83d6ea461b
Move description file parsing out to separate class
2023-12-08 19:35:06 +10:00
Julien Cabieces
bb3c36a69b
Initialize sip bindings for PyQt6
...
use exactly the ones from PyQt5 so we can study the difference when
generating for PyQt6
2023-12-08 03:38:42 +10:00
Nyall Dawson
56e8206f21
Hold GIL when calling cheap processing methods
2023-12-07 16:21:31 +10:00
Nyall Dawson
5be709361b
Don't initialize project provider from qgis_process -- project
...
models can't be called from qgis_process anyway
2023-12-07 16:20:25 +10:00
Nyall Dawson
cb5fbaf026
Avoid double loading model algorithms when starting provider
2023-12-07 16:20:25 +10:00
Nyall Dawson
e4e63ce5f9
[processing] When running qgis_process commands, defer the model
...
provider loading until after ALL plugins have been loaded
This avoids the model provider from refreshing all the model
algorithms multiple times, once for each non-default plugin installed
which implements a processing provider.
2023-12-07 16:20:25 +10:00
Nyall Dawson
350d2e326a
Add method to remove manually inserted features from QgsSpatialIndex
2023-12-07 13:31:51 +10:00
Nyall Dawson
6cf940c20d
Update tests to newer methods
2023-12-06 06:39:49 +10:00
Loïc Bartoletti
4a353d1a12
Marks deprecated methods in QgsGeometryUtils redundant with QgsGeometryUtilsBase
2023-12-01 11:17:11 +01:00
Loïc Bartoletti
8025f72fa7
QgsGeometryUtils_base: add this class available in Python binding
2023-12-01 11:17:11 +01:00
Loïc Bartoletti
ac3e73e25c
[refacto] QgsGeometryUtils: move base methods to a dedicated class
...
Refactor QgsGeometryUtils to separate "basic" methods from those involving QGIS
composite types.
By "basic" methods, we refer to those that only require doubles or (qgs)vectors.
These methods are now encapsulated in their dedicated classes and can be called
from anywhere to prevent duplications in certain methods (in particular Cartesian distance calculation).
To maintain API compatibility, all methods are also accessible in QgsGeometryUtils
which acts as a pass-through to QgsGeometryUtilsBase.
2023-12-01 11:17:11 +01:00
Loïc Bartoletti
3ab676e603
QgsGeometryUtils: move 2D distance code into QgsGeometryUtils.h and uses it
2023-12-01 11:17:11 +01:00
Alexander Bruy
8efd68e117
add test
2023-12-01 08:35:08 +10:00
Nyall Dawson
fe2df1441f
Move playback controller buttons to reusable widget
...
Create QgsPlaybackControllerWidget as reusable
play/pause/rewind/next/... button bar
2023-11-30 13:54:02 +10:00
Nyall Dawson
e891ac8fec
[feature] Add "movie" mode to temporal controller
...
This mode is purely for animated map movies -- the user can set
the total number of frames, and the animation will progress
frame by frame for that number of frames, advancing the current
map settings frame at each step (also the @frame_number expression
variable).
No time based filtering of data is performed when in this mode.
2023-11-30 13:54:02 +10:00
Nyall Dawson
60057e508c
Move temporal enums to Qgis, promote to enum class
2023-11-30 13:54:02 +10:00
Alessandro Pasotti
fae9f858fe
Merge pull request #55302 from tomass/master
...
WMS service: option to skip name attribute for groups in wms capabilities document
2023-11-28 08:27:31 +01:00
Andrea Giudiceandrea
746345510c
Fix Qgis.SettingsOrigin enum values description
2023-11-28 04:33:47 +10:00
Nyall Dawson
38557ab991
Lint
2023-11-27 14:23:18 +10:00
Nyall Dawson
74dfe786e9
Include details of failing render test callers from Python tests
2023-11-27 14:23:18 +10:00
Nyall Dawson
12556fa502
Expose method to Python
2023-11-27 14:23:18 +10:00
Nyall Dawson
58e2ddb7e5
Drop OTB Processing provider
...
As discussed in https://lists.osgeo.org/pipermail/qgis-developer/2023-November/066221.html
This plugin needs to be ported to a 3rd party plugin by a motivated maintainer.
2023-11-27 10:09:16 +10:00
Nyall Dawson
4567d97687
Apply suggestions from code review
2023-11-27 06:14:51 +10:00
Patrice Pineault
c28246e0cc
Set input combo box to active layer when importing vector data. Fixes #55168
2023-11-27 06:14:51 +10:00
Nyall Dawson
13387d27fe
Include links to reference images and source code locations in
...
markdown report
2023-11-26 17:18:27 +10:00
Nyall Dawson
ee94913fbc
Add macros to wrap calls to imageCheck/layoutCheck in c++ tests
...
So that the source file and line numbers are available for
inclusion in the generated test reports
2023-11-26 17:18:27 +10:00
tomass
c504439ebf
Merge remote-tracking branch 'upstream/master'
2023-11-25 18:46:16 +02:00
Loïc Bartoletti
5ac90ce54c
[OGC] Polygon: fix rings order
...
[OGC] Polygon: fix rings order
2023-11-25 05:45:01 +01:00
Mathieu Pellerin
0ce0b78295
Merge pull request #55146 from nirvn/qml_responsive
...
[editor widgets] Fix QML editor widget not responsive to attribute changes
2023-11-25 07:35:39 +07:00
Nyall Dawson
98c19b38ac
Cleanup qgis.utils.home_plugin_path
2023-11-25 07:40:02 +10:00
Nyall Dawson
7925d7261e
Cleanup files
2023-11-25 07:40:02 +10:00
Nyall Dawson
13bc09e706
Remove redundant "import qgis" lines from python files
...
These were only needed way back in the early days of qgis 3.0
transition, now they have no effect
2023-11-25 07:40:02 +10:00