132 Commits

Author SHA1 Message Date
Alexander Bruy
15cb56447c add description 2025-07-25 12:36:35 +10:00
Alexander Bruy
c427ce44da add description 2025-07-22 12:41:07 +10:00
Nyall Dawson
263758f80b Run conformance tests on pdal algorithms 2025-06-07 07:58:17 +10:00
Nyall Dawson
fbb2a79b64
Update list 2025-06-06 11:22:47 +10:00
Nyall Dawson
25d50e6ee7
Fix test 2025-06-06 11:20:34 +10:00
Nyall Dawson
1e167b3827
Allow short description starting with 'randomly' 2025-06-06 08:50:49 +10:00
Nyall Dawson
52614f1fd1
Always run short description checks on new descriptions 2025-06-06 08:50:35 +10:00
Nyall Dawson
e5b3314af7
Update missing short description list 2025-06-06 08:49:27 +10:00
Nyall Dawson
10039e916c
Update missing tags list 2025-06-06 08:48:02 +10:00
Nyall Dawson
4cf15e496c [processing] Allow creating tests with dynamic expression params 2025-05-30 14:17:49 +10:00
Nyall Dawson
db52dfee73 Update python/plugins/processing/tests/AlgorithmsTestBase.py
Co-authored-by: Harrissou Sant-anna <delazj@gmail.com>
2025-05-17 11:15:23 +10:00
Nyall Dawson
e5660d32f0 Update list 2025-05-17 11:15:23 +10:00
Nyall Dawson
9e2c6962ad Add conformance test to ensure algorithms have tags 2025-05-17 11:15:23 +10:00
Nyall Dawson
c1f022a16d Add extra conformance test to ensure short description does NOT start with "this algorithm" 2025-05-17 11:15:23 +10:00
Nyall Dawson
d309cf21a4
No HTML in short descriptions 2025-05-15 13:09:55 +10:00
Nyall Dawson
158b4a6b0d
Add conformance tests for algorithm descriptions 2025-05-15 13:08:36 +10:00
Alexander Bruy
f186288b41 fix TIN and IDW interpolation algorithms and tests 2025-04-23 07:39:24 +10:00
Jan Caha
f593da593a
New Algorithm - Mesh Surface to Polygon (#58941)
* new algorithm

* update feedback

* allow cancel during mesh face processing

* allow cancel during mesh faces processing

* fix file names

* fix the speed of the algorithm

* drop not needed imports

* fix issues

* more readable

* add mesh layer

* test case

* simplify to avoid warning

* fix issue

* fix data call

* fix call

* fix expected data

* handle meshes with holes

* add test case

* merge from master

* Update src/analysis/processing/qgsalgorithmmeshsurfacetopolygon.cpp

fix translation

Co-authored-by: Stefanos Natsis <uclaros@gmail.com>

* Update src/analysis/processing/qgsalgorithmmeshsurfacetopolygon.cpp

fix translation

Co-authored-by: Stefanos Natsis <uclaros@gmail.com>

* Update src/analysis/processing/qgsalgorithmmeshsurfacetopolygon.cpp

fix translation

Co-authored-by: Stefanos Natsis <uclaros@gmail.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix translation

* typo

* clone

* delete to avoid memory leak

---------

Co-authored-by: Stefanos Natsis <uclaros@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-12-11 16:04:48 +02:00
Denis Rouzaud
0f032e5f2d run pre-commit on all files 2024-11-29 15:38:02 +01:00
Even Rouault
07067d37b5 python/plugins: turn on GDAL exceptions to avoid deprecation warning
Fixes #57344
2024-05-22 13:34:35 +10:00
Nyall Dawson
c997d5a8d9 Fix test 2024-03-19 13:44:02 +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
c16a1e2b3d Update enums 2024-01-19 19:44:48 +10:00
Jean Felder
e0466ab5eb plugins/tests: Port to QgisUnitTests
`unittest.TestCase` is deprecated.
2023-12-12 05:27:30 +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
Etienne Trimaille
3cab3c43a2
Python - Run pyupgrade on the processing plugin 2023-04-24 10:03:57 +02:00
Nyall Dawson
894a938fff [processing] Drop unmainted saga provider from QGIS install
This provider has not been maintained and does not work with
newer SAGA versions. Users are encouraged to use the 3rd-party
"Processing Saga NextGen" plugin instead.
2022-11-10 17:25:06 +10:00
Nyall Dawson
9f07b782f2 More working processing tests on newer systems 2022-08-10 16:33:18 +10:00
Nyall Dawson
44c06b7be4 Get some processing tests passing on newer libraries 2022-08-10 16:33:18 +10:00
Nyall Dawson
bcf964aac5 [processing] Fix evaluation of empty file names for file parameters
in test suite
2021-08-02 12:17:59 +10:00
Nyall Dawson
b4025442e8 [processing] Automatically load the native and 3d providers
when a script calls Processing.initialize() if they are not
already loaded

This means the following ugly code can be avoided:

    Processing.initialize()
    QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms(QgsApplication.processingRegistry()))
    QgsApplication.processingRegistry().addProvider(Qgs3DAlgorithms(QgsApplication.processingRegistry()))

and instead the call to Processing.initialize() is sufficient to load
ALL providers

Fixes #41310
2021-02-09 20:13:01 +10:00
Nyall Dawson
d4f2b842ba Allow for multiple reference text files 2021-02-08 13:23:40 +10:00
Nyall Dawson
25886c30de A bit of repairs to vector tiles algorithm test 2021-02-08 13:23:39 +10:00
Nyall Dawson
3b57b53851 Fix passing geometry compare options to checkLayersEqual 2021-02-08 13:23:39 +10:00
Nyall Dawson
b0994a5574 Fix running tests where the same layer is used for multiple parameters 2021-02-08 13:23:39 +10:00
Nyall Dawson
846d1fe0e6 [processing] Add option to ignore part order when comparing geometries to expected results 2021-02-08 13:23:39 +10:00
Nyall Dawson
19b4b1aa64 When loading GML layers in processing tests, FORCE detection of
SRS. Newer GDAL versions won't do this by default, but we need
to determine the actual/expected CRS for these layers in order
to compare correctly.
2021-02-08 13:23:37 +10:00
Nyall Dawson
b6a7a10703 Fix some more python formatting issues, remove more flake exceptions 2020-05-11 11:41:50 +10:00
Matthias Kuhn
a7e0831dcf Code style 2020-05-05 22:38:37 +02:00
Nyall Dawson
64b52bf31b Fix handling of interpolation layers with differing input coordinate reference systems
Fixes #27048
2019-11-05 16:57:33 +10:00
Nyall Dawson
da1b5637af Fix deprecated gdal import warnings 2019-07-25 11:25:51 +10:00
Bas Couwenberg
2628c480c5 Don't include revision in sources.
Prevent changes to files that weren't changed between releases.
This eases review of the changes between releases significantly.
2019-05-17 16:47:47 +02:00
Martin Dobias
ee63cffd88 [processing] Add 'project' to test definition and 'directory' output test
- for algorithms that produce directory output, it is possible to test
  that directory contents are exactly the same (recursively)
- added possibility to have a project file loaded before an algorithm is run
- documented the new additions (+ few existing ones)
2019-04-25 21:40:31 +02:00
Nyall Dawson
f5a3485eae Fix some Python warnings, avoid accidently hiding all deprecation warnings 2019-03-28 11:47:23 +10:00
Matthias Kuhn
2a973fc0b6
Allow using gpkg in processing tests 2018-10-31 10:27:54 +01:00
Nyall Dawson
f3e9aaf79a Fix some inefficient python dictionary iteration 2018-10-31 08:42:51 +10:00
Nyall Dawson
4acef1efbf [processing] Fix crash in extract by attribute when field name does not exist
Fixes #19531
2018-08-04 05:57:46 +10:00
Nyall Dawson
9fe26af8fa Allow processing tests to specify ellipsoid/project CRS 2018-06-29 07:12:48 +10:00
Nyall Dawson
e273ac2815 [processing] Some test debugging help 2018-06-01 11:54:31 +10:00
Nyall Dawson
870d20740c [processing] Tweaks and checks for checkParameterValues 2018-05-28 16:02:38 +10:00