1342 Commits

Author SHA1 Message Date
Mathieu Pellerin
4d2c24e850 [processing] Adjust st-dbscan algorithm to new duration parameter, change default unit to hours 2021-09-06 16:57:36 +10:00
nirvn
75c8eb7798 Add T test 2021-08-31 14:31:12 +07:00
Nyall Dawson
cf40573d2c [feature][processing] Add new "Select within distance" and
"Extract within distance" algorithms

These algorithms allow users to select or extract features from one
layer which are within a certain distance of features from another
reference layer.

The distance checking is heavily optimised, using spatial indices
to restrict the number of features retrieved, and also automatically
handing the check off to the database server for postgis layers.

The distance parameter can also be data-defined.

Sponsored by QTIBIA Engineering
2021-08-06 17:37:09 +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
Loïc Bartoletti
72a0c41ea3 add tests 2021-07-28 09:13:46 +10:00
nirvn
6b993f6b98 [FEATURE][processing] Brand new duration parameter 2021-07-27 13:46:09 +07:00
nirvn
f68ef8fb60 [feature][processing] A brand new spatiotemporal ST-DBSCAN clustering algorithm 2021-07-26 10:30:14 +10:00
Alexander Bruy
8541162003 restore moved test data 2021-06-21 07:17:42 +03:00
Alexander Bruy
fba25dce83 tests for SAGA provider 2021-06-21 07:17:36 +03:00
Alexander Bruy
a0945cfdfe tests for GRASS provider 2021-06-21 07:17:36 +03:00
Alexander Bruy
6e93efe842 tests for OTB provider 2021-06-21 07:17:36 +03:00
Alexander Bruy
82ad2051e6 fix file permissions
remove duplicated short help file
2021-06-21 07:17:36 +03:00
nicogodet
b265e20bd6 add test for odd integer for neighborhood size parameter 2021-06-16 16:58:59 +02:00
nicogodet
21ed71aac9 fix test 2021-06-15 09:44:55 +02:00
nicogodet
bb3d9ad973 add test 2021-06-15 08:40:17 +02:00
Nyall Dawson
e70cf8da27 Fix zonal statistics does not correctly handle coordinate transforms
Fixes #26858
2021-06-11 06:16:53 +10:00
Andrea Giudiceandrea
7d57aeef22
Add test for GRASS r.proj alg 2021-06-04 16:52:57 +02:00
rldhont
943acfd344 [Processing] Fix getParameterFromString to get Vector Layer data types like Feature Source
In Processing parameter description QgsProcessingParameterVectorLayer multi data types does not work as QgsProcessingParameterFeatureSource.
2021-05-13 06:51:29 +10:00
rldhont
bb5871c8c6 [Processing][Test] QgsProcessingParameterVectorLayer description string - Deactivated tests
QgsProcessingParameterVectorLayer multi data types does not work as QgsProcessingParameterFeatureSource
2021-05-07 08:41:51 +10:00
rldhont
cde42b8bab [Processing][Test] QgsProcessingParameterRasterLayer description string 2021-05-07 08:41:51 +10:00
rldhont
9438291a11 [Processing][Test] QgsProcessingParameterVectorLayer description string 2021-05-07 08:41:51 +10:00
rldhont
873307fa06 [Processing][Test] QgsProcessingParameterFeatureSource description string 2021-05-07 08:41:51 +10:00
rldhont
ed37c049f4 [Processing][Test] QgsProcessingParameterFileDestination description string 2021-05-04 15:01:03 +02:00
rldhont
a30f5fe2d4 [Processing][Test] QgsProcessingParameterFolderDestination description string 2021-05-04 15:01:03 +02:00
rldhont
59ab80bb32 [Processing][Test] QgsProcessingParameterRasterDestination description string 2021-05-04 15:01:03 +02:00
rldhont
13bb8627da [Processing][Test] QgsProcessingParameterVectorDestination description string 2021-05-04 15:01:03 +02:00
rldhont
bb57221f9c [Processing][Test] QgsProcessingParameterFile description string 2021-05-04 15:01:03 +02:00
Nyall Dawson
f093c17ac7 Update python/plugins/processing/tests/ParametersTest.py 2021-05-04 10:09:47 +10:00
rldhont
d8188ec238 fix number 2021-05-04 10:09:47 +10:00
rldhont
6a3fad81ea Tests QgsProcessingParameterExtent 2021-05-04 10:09:47 +10:00
rldhont
8d232b247b Tests QgsProcessingParameterCrs 2021-05-04 10:09:47 +10:00
rldhont
2754f829dd Tests QgsProcessingParameterBoolean 2021-05-04 10:09:47 +10:00
rldhont
08947d7ba0 Fix number 2021-05-04 10:09:47 +10:00
rldhont
44a5c97324 Tests QgsProcessingParameterNumber 2021-05-04 10:09:47 +10:00
rldhont
7b97bd9ad2 fix lint 2021-05-04 10:09:47 +10:00
rldhont
b32a9ea46f [Tests][Processing] Add getParameterFromString tests
The Procesing plugins provide a method to get parameter from string.
The string can be based on the QGIS parameter `asScriptCode` / `fromScriptCode` string definition or
on the QGIS definitions used in description file.
2021-05-04 10:09:47 +10:00
nirvn
410f4d024f Add test, fix issue raised by test 2021-03-31 11:50:23 +07:00
nicogodet
bf9efccff2
Fix GDAL overwrite and some minor fixes (#42447)
Automatically overwrite files in some gdal algorithms, in order to match the behavior of other processing algorithms which automatically overwrite existing files

Fixes #42248
2021-03-25 09:17:41 +10:00
Harrissou Sant-anna
6e20ee86ae
Use correct spelling for qgsProcessingException class
Fix typo
2021-03-16 04:49:35 +01:00
talledodiego
0e6ffc7045
[gdal] rasterize - Include the possibility to use Z of feature to extract burn values 2021-03-03 11:16:13 +10:00
Nyall Dawson
7e5b6dde2f Loosen test precision following Geographiclib area calculation switch 2021-02-27 13:15:22 +10:00
Nyall Dawson
c5dd8714a8 [processing] Fix escaping of srcnodata argument in Build Virtual Raster
alg
2021-02-26 12:02:59 +10:00
Nyall Dawson
33b0dbe761 [processing][gdal] Fix escaping of delimiter parameter in retile
algorithm
2021-02-26 11:50:51 +10:00
Nyall Dawson
ea113cbf4a [processing][gdal] ";" characters must be escaped when running gdal
commands
2021-02-26 11:30:49 +10:00
Nyall Dawson
e11801d34e Require Proj version 6 or later, drop old proj 4 compatibility code 2021-02-23 12:47:04 +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
c7a25c6275 Split grass raster tests into two blocks 2021-02-09 09:31:44 +10:00
Nyall Dawson
2bc9f98bdd Another SAGA hash 2021-02-08 13:23:41 +10:00
Nyall Dawson
36a07f795a SAGA test hash 2021-02-08 13:23:41 +10:00
Nyall Dawson
2aacc6def0 Saga tolerance 2021-02-08 13:23:41 +10:00