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
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
Alexander Bruy
8efd68e117
add test
2023-12-01 08:35:08 +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
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
DelazJ
406e1d6b9a
Harmonize user facing labels for GDAL resampling methods
2023-11-24 08:20:32 +10:00
Nyall Dawson
33e1d4fba9
Check for non-zero cell sizes
2023-11-14 06:36:39 +10:00
Nyall Dawson
da514d0e5e
Fix exception in interpolation algorithm widgets
...
Fixes #55138
2023-11-14 06:36:39 +10:00
Nyall Dawson
27bcb01cb6
Add some typehints
2023-11-14 06:36:39 +10:00
Nyall Dawson
ae45e662c6
If user enabled OTB plugin without setting a path, don't show
...
message box warnings when closing Settings dialog
This is confusing for users who have accidentally enabled the plugin.
If the path is empty, chances are the user isn't wanting to use
the OTB provider and it's nicer not to show a big confusing
message box warning to them.
2023-11-11 07:01:17 +10:00
Nyall Dawson
2456290168
Add tests
2023-11-02 22:03:20 +10:00
Blottiere Paul
385fedd232
Add safeguard to all gdal algorithms
2023-10-19 13:31:42 +02:00
Blottiere Paul
9df62b90f3
Raise error in case if invalid parameter in batch mode
2023-10-17 15:32:54 +02:00
Blottiere Paul
9c8475e5b1
Add safeguard for -of option
2023-10-17 15:32:54 +02:00
Alexander Bruy
edaa3dda96
update vector menu links to processing algorithms ( fix #54937 )
2023-10-16 05:04:34 +10:00
Denis Rouzaud
c76b86e26b
move enum QgsMapLayerProxyModel::Filter to Qgis ( #54891 )
2023-10-11 13:57:01 +02:00
Alexander Bruy
a0fc443b5b
add test files
2023-10-09 12:14:20 +02:00
Alexander Bruy
e3023455ca
use run() to execute nested algorithms
...
move step calculation to prepareAlgorithm to avoid crash
disable tests for native implementation
2023-10-09 12:14:20 +02:00
Alexander Bruy
a4e473392c
concave hull tests based on geos version
2023-10-09 12:14:20 +02:00
Alexander Bruy
17426302ff
address review
2023-10-09 12:14:20 +02:00
Alexander Bruy
d18190ce4f
make cppcheck happy
2023-10-09 12:14:20 +02:00
Alexander Bruy
514e8b5b24
use geos to calculate concave hull on systems with geos >=3.11.0
2023-10-09 12:14:20 +02:00
Alexander Bruy
5ad4119b19
another attempt to fix test
2023-10-09 12:14:20 +02:00
Alexander Bruy
5097992445
try to fix tests
2023-10-09 12:14:20 +02:00
Alexander Bruy
61b69179af
[processing] port concave hull algorithm to C++
2023-10-09 12:14:20 +02:00
Alexander Bruy
451d1ba5ce
[processing] port delaunay triangulation algorithm to C++
2023-10-09 12:14:20 +02:00
Alexander Bruy
d8243141cc
[processing] port voronoi polygons algorithm to C++
2023-10-09 12:14:20 +02:00
Sandro Santilli
bcf83c17b6
Do not pass -projwin to gdal_translate when given rectangle is Null
...
Update testcase accordingly
2023-10-08 22:40:25 +02:00
Nyall Dawson
33bb769b91
Cleanup Execute SQL geometry type handling
...
And fix exception when "no geometry" type is selected
Fixes #54833
2023-10-05 14:54:41 +10:00
Nyall Dawson
7b93febd79
Geometry type should not be optional in Execute SQL algorithm
...
Instead it should just default to Autodetect
Given how the algorithm uses this parameter this change does not
result in any difference to scripts/etc running this tool, as
before/after this change the algorithm will use Autodetect mode
when the parameter isn't specified explicitly.
This just avoids the confusing situation where both "Not specified"
and "Autodetect" were exposed as options for the geometry type
parameter in the UI, with both having the same result.
2023-10-05 14:54:41 +10:00
Nyall Dawson
0a11e3da2c
Fix strings
2023-10-05 14:54:41 +10:00
Juergen E. Fischer
a0c3d67911
Don't install CMakeLists.txt
2023-10-02 11:44:34 +02:00
Alexander Bruy
373d5f8654
Merge pull request #54035 from alexbruy/processing-port-raster-calculator
...
Port Raster Calculator algorithm to C++
2023-09-30 10:12:55 +03:00
Nyall Dawson
25fc01542a
Port Join Attributes by Location (summary) to c++
...
Refs #53806
The crash here is coming from sip internals -- somewhere it is
triggering a Python SystemError. I can't solve this one, so just
port the algorithm to c++ and deal with the much improved performance
instead.
2023-09-29 19:11:46 +10:00
Nyall Dawson
8793e659a1
Apply suggestions from code review
2023-09-29 11:31:17 +10:00