Nyall Dawson
51378f9827
[processing] Set the active layer to one of the generated outputs
...
Fixes #57003
2024-04-20 08:49:45 +10:00
Nyall Dawson
d95ac4a7ea
Better reporting for invalid field names for some algorithms
2024-04-18 13:25:06 +10:00
Nyall Dawson
84f37095bc
Fix typo
2024-03-20 14:17:00 +10:00
Nyall Dawson
c997d5a8d9
Fix test
2024-03-19 13:44:02 +10:00
Nyall Dawson
d2e3534dbd
[processing] Use correct ellipsoid for network analysis tools
...
Use the processing context's ellipsoid instead of a hardcoded
WGS84 ellipsoid for distance calculations during network
analysis, so that the lengths used will exactly match other
measurement tools used on the same features in the same
project.
2024-03-19 13:44:02 +10:00
Jacky Volpes
ae57030135
Fix global QGIS setting key in check validity algorithm
2024-03-08 09:13:32 +10:00
Andrea Giudiceandrea
a0c88b15a1
Apply suggestion from code review
2024-03-05 10:38:16 +10:00
Andrea Giudiceandrea
9c32e69f88
[processing] Fix "Random points along line" alg
...
Avoid various errors in case of empty input layer, empty/null geometries, invalid geometries, linestrings with zero-length segments...
2024-03-05 10:38:16 +10:00
Nyall Dawson
f1d762eba7
Update python/plugins/processing/gui/BatchPanel.py
...
Co-authored-by: Nicolas Godet <39594821+nicogodet@users.noreply.github.com>
2024-02-21 08:11:58 +10:00
Nyall Dawson
ece5d30a0b
Ensure correct context is used when determining parameters for row
...
Fixes #56132
2024-02-21 08:11:58 +10:00
Nyall Dawson
496fd18e55
Add typehints
2024-02-21 08:11:58 +10:00
Nyall Dawson
def984cd4f
Cleanup code, only run checks when warnOnInvalid is True
...
Refs #56132
2024-02-21 08:11:58 +10:00
Andrea Giudiceandrea
42f3a60743
Apply suggestions from code review
2024-02-18 06:52:52 +10:00
Andrea Giudiceandrea
5eb58df57e
Fix typo
2024-02-18 06:52:52 +10:00
Andrea Giudiceandrea
dbdf35be77
gdal:fillnodata Skip testing NO_MASK parameter if GDAL >= 3.4.0
2024-02-18 06:52:52 +10:00
Andrea Giudiceandrea
3945c73b84
Rise an exception instead of an info message
2024-02-18 06:52:52 +10:00
Andrea Giudiceandrea
5a721c47c0
[processing] Fix GDAL "Fill NoData" algorithm
...
The gdal_fillnodata.py -nomask option is no longer supported since GDAL 3.4.0
2024-02-18 06:52:52 +10:00
Nyall Dawson
763278f8ef
Don't use removed QDesktopWidget
2024-02-13 08:13:43 +10:00
Nyall Dawson
6d5ef5b961
processing plugin (mostly) works on qt6 builds now
2024-02-13 08:13:43 +10:00
Nyall Dawson
cdada7c764
Add test variants for GEOS >= 3.11
2024-02-12 18:38:21 +10:00
Nyall Dawson
da7461ff77
Fix some processing tests on newer library versions
2024-02-12 18:38:21 +10:00
Nyall Dawson
20d5b34cd3
Rename test_definition_file to definition_file
...
Otherwise unittest thinks the function is a test itself and runs it
accordingly, and then raises a deprecation warning because
return values are not permitted from test functions
2024-02-12 16:44:06 +10:00
Nyall Dawson
de0afb14db
Don't call QFontMetrics.width()
2024-02-12 14:22:37 +10:00
Nyall Dawson
ad91789f9e
Fix pyqt5_to_pyqt6 double unnesting some enums
2024-02-12 12:19:10 +10:00
Nyall Dawson
e5f7accc6a
use another enum
2024-02-10 17:25:22 +10:00
Nyall Dawson
aeacb8fe07
Use enums, not raw ints
2024-02-10 17:25:22 +10:00
Andrea Giudiceandrea
247cadce38
[processing] Don't show hidden parameters in algorithmHelp
2024-02-10 09:24:07 +10:00
Nyall Dawson
8f3944dabd
Don't use QVariant(QVariant.Type) for NULL values in Python
...
Instead use qgis.core.NULL, so that the correct logic applies
for Qt6.
2024-02-07 19:35:28 +10:00
Nyall Dawson
ea3a86508e
Rename more references to grass7 to version-less "grass"
2024-02-06 18:31:48 +10:00
Nyall Dawson
0ab66b7b6f
Rename grass provider files and classes to remove hardcoded version
...
number
2024-02-06 18:31:48 +10:00
Nyall Dawson
58695f7c83
Apply suggestions from code review
2024-02-01 17:22:29 +10:00
Alister Hood
05ac633ca9
Don't report that html output has been generated if it hasn't
2024-02-01 17:22:29 +10:00
Nyall Dawson
c95df01a90
Advertise qt6 compatibility for metasearch plugin
...
There may be some sneaky issues still, but it at least appears to
function ok!
2024-01-31 10:55:33 +10:00
Alessandro Pasotti
27824078ad
Introduce QgsProcessingProvider::Flag::FlagCompatibleWithVirtualRaster
2024-01-31 10:37:52 +10:00
Nyall Dawson
8e00d4befa
Don't use raw ints as enum values
2024-01-30 19:10:43 +10:00
Alexander Bruy
35d8864fec
add tests
2024-01-29 17:14:11 +01:00
Mathieu Pellerin
c3738acb6f
[processing] Regenerate primary key when running the dissolve algorithm ( fixes #55587 )
2024-01-25 06:06:56 +10:00
Nyall Dawson
e42abf7dc5
Update python files
2024-01-22 05:46:15 +10:00
Nyall Dawson
2ec6dff851
Indentation
2024-01-19 19:44:48 +10:00
Nyall Dawson
c16a1e2b3d
Update enums
2024-01-19 19:44:48 +10:00
Julien Cabieces
9d12ae8e6d
[PyQt6] Add scope for enums and get rid of PyQt5.XXX import
...
this has been done automatically with the following comand line
./scripts/3to4/3to4.py --only-qgis3-compatible-changes ./python/plugins/
./scripts/3to4/3to4.py --only-qgis3-compatible-changes ./tests/src/python/
2024-01-10 21:15:27 +10:00
Nyall Dawson
3c179214fc
Use nicely formatted results in processing logs
2024-01-09 17:02:21 +10:00
Sebastian Gutwein
017bed7e51
fix test
2023-12-26 17:33:06 -05:00
Sebastian Gutwein
1a8f6614c1
NoData harmonization
2023-12-24 07:26:49 -05:00
Jean Felder
e0466ab5eb
plugins/tests: Port to QgisUnitTests
...
`unittest.TestCase` is deprecated.
2023-12-12 05:27:30 +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