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
Martin Dobias
73d10afe31
Processing tests: allow topological geometry tests instead of exact tests
...
This is useful with geometry algorithms when the order of the coordinates of produced
geometries does not need to be exactly the same every time, but the output is still
topologically equivalent.
2018-05-10 06:50:57 -04:00
Nyall Dawson
b3288192ee
[processing] Fix exception when clicking help for GDAL algorithms
2018-05-06 07:13:15 +10:00
Nyall Dawson
6c892652ac
Followup a463858, fix failing tests
2018-04-20 08:38:15 +10:00
Nyall Dawson
e83cd6155f
[processing] Better debugging for failed tests
2018-04-10 09:57:58 +10:00
Alexander Bruy
e1a64f6a8f
[processing] remove unused files
2018-02-05 08:50:37 +02:00
Alexander Bruy
4b63975eaf
[processing] tests for SAGA provider and related fixes
2017-11-09 18:56:44 +02:00
Alexander Bruy
b4214798e9
[processing] infrastructure for SAGA tests
2017-11-09 18:56:44 +02:00
Nyall Dawson
ba62ffce2c
Make constructors for QgsVectorLayer and QgsRasterLayer more flexible
...
...by moving extra arguments to new LayerOptions structs. This allows
us to more easily add new layer constructor options without making
the API cumbersome to use.
2017-11-09 14:28:51 +11:00
Nyall Dawson
ddb3198ef2
Add some more debugging to processing algorithm test
...
Trying to pinpoint which algorithm occasionally segfaults during
test runs
2017-09-05 09:18:16 +10:00
Nyall Dawson
d573c43e3e
Better test debugging
2017-08-25 15:58:57 +10:00
Nyall Dawson
7b2250bb35
Convert processing tests to use native algs where they exist
2017-08-17 20:20:58 +10:00
Mario Baranzini
78af413dcc
Remove python future compatibility layer
2017-08-07 10:27:15 +02:00
Nyall Dawson
d4ad063f45
Allow specifying a 'primary key' field when comparing layers for
...
processing tests
Some algorithms will return results in different orders, e.g.
due to the use of dicts or other methods which do not guarantee
a fixed return order.
Using a primary key to do the feature match allows us to flexibly
handle these situations and provide tests for these algorithms.
2017-08-05 22:10:18 +10:00
Nyall Dawson
9968962ab9
Allow specifying multiple possible vector layer results for processing
...
tests
Some algorithms are non-deterministic and the results may vary from
run to run. In this case we allow specifying multiple possible valid
results, and the test will pass if the result layer matches any of these.
2017-08-05 17:51:38 +10:00
Nyall Dawson
5d635d190d
Allow list of acceptable raster hashes for processing algorithm tests
...
Differences in gdal libraries mean the hash value may differ between
platforms. Allow multiple acceptable hashes to be listed for
expected test results
2017-08-05 17:51:38 +10:00
Nyall Dawson
504cc1f390
Port Truncate alg to new API
2017-07-27 14:43:42 +10:00
Alexander Bruy
56208540f9
[processing] remove GeoAlgorithmExecutionException
2017-07-13 09:02:24 +03:00