6141 Commits

Author SHA1 Message Date
Nyall Dawson
0a6436402d [processing][gdal] Don't insert 'temporary file' strings in command for non-specified optional outputs 2021-02-26 11:47:37 +10:00
Nyall Dawson
ea113cbf4a [processing][gdal] ";" characters must be escaped when running gdal
commands
2021-02-26 11:30:49 +10:00
Alexander Bruy
acd627e913 [processing] add r.quantile algorithm with plain text output which can
be directly used as input for r.recode
2021-02-25 10:05:01 +02:00
Nyall Dawson
e11801d34e Require Proj version 6 or later, drop old proj 4 compatibility code 2021-02-23 12:47:04 +10:00
Matthias Kuhn
a825b5af35
Merge pull request #41738 from m-kuhn/alg_exec_no_selection_unbound_local
Fix calling in place with empty iterator
2021-02-22 21:59:36 +01:00
Matthias Kuhn
60ad7d43b3 Fix calling in place with empty iterator
```
              File "/home/mkuhn/.local/share/QGIS/QGIS3/profiles/default/python/plugins/autocurve/plugin.py", line 127, in curvify
              AlgorithmExecutor.execute_in_place(alg, {})
              File "/usr/share/qgis/python/plugins/processing/gui/AlgorithmExecutor.py", line 305, in execute_in_place
              ok, results = execute_in_place_run(alg, parameters, context=context, feedback=feedback)
              File "/usr/share/qgis/python/plugins/processing/gui/AlgorithmExecutor.py", line 214, in execute_in_place_run
              results, ok = {'__count': current + 1}, True
              UnboundLocalError: local variable 'current' referenced before assignment
```
2021-02-22 15:06:19 +01:00
Juergen E. Fischer
61b6cc21e8 followup 570972b227075335f2b4a6ca2d5e6cb00330a0f6 2021-02-21 19:26:44 +01:00
Juergen E. Fischer
570972b227 processing/gdal: use batch files instead of modules on windows 2021-02-21 17:46:14 +01:00
Nyall Dawson
af0fb8bb87 [processing] Fix GDAL algorithms hang when gdal command is not available to run 2021-02-21 15:04:31 +10:00
Evan Derickson
0a3b7d36f8 Make argument setting consistent 2021-02-20 12:26:00 +10:00
Evan Derickson
5302feb2dd Add line break for consistency 2021-02-20 12:26:00 +10:00
Evan Derickson
f87386aa0a Making formatting consistent 2021-02-20 12:26:00 +10:00
Evan Derickson
f3a60ebfe7 Simplify other_fields checker 2021-02-20 12:26:00 +10:00
Evan Derickson
6d5bf2b5c4 Revert f-string conversion 2021-02-20 12:26:00 +10:00
Evan Derickson
a366d5b26c Refactor climb.py 2021-02-20 12:26:00 +10:00
Evan Derickson
26ad7c6a46 Simplify other_field checker 2021-02-20 12:26:00 +10:00
Evan Derickson
97880d74d5 Simplify other_fields detection 2021-02-20 12:26:00 +10:00
Evan Derickson
ef6799fad4 More append thinning
Along with some other loop optimizations
2021-02-20 12:26:00 +10:00
Evan Derickson
0e63799012 Reduce appends 2021-02-20 12:26:00 +10:00
Evan Derickson
dcde81fb1b Thin out unneeded function calls 2021-02-20 12:26:00 +10:00
Jean-François Bourdon
64d921fe53
Reformat elapsed time in processing to express time in hours, minutes and seconds (#41573)
When appropriate, express the elapsed time in hours, minutes and seconds in addition to cumulative seconds.
2021-02-20 06:35:16 +10:00
Nyall Dawson
c8d61499ff [processing] Instead of a hidden parameter for verbose model logging,
add an explicit log level getter/setter to QgsProcessingContext which
algorithms can use to determine an appropriate level of feedback
to push to users.

Initially the verbose log only triggers the full verbose output
of model executions (which is also used when running models through
the model designer), but the intention is that more algorithms
will fine tune their output based on the logging level.

qgis_process also gains a new --verbose switch to enable verbose
log output.
2021-02-20 05:04:00 +10:00
Giovanni Manghi
92a4899210
fix GRASS v_net_visibility module (#41515)
Fixes #41030
2021-02-16 08:54:36 +10:00
Luigi Pirelli
2f7d6defee Added sanity check of links between graphicitems showing error in dialog. Fixes #40724 #39260 2021-02-11 11:47:28 +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
645397e83d Fix restoring previous GDAL alg raster creation options when running an algorithm from processing history 2021-02-09 15:14:44 +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
Nyall Dawson
4005768f5b Check in mask files 2021-02-08 13:23:41 +10:00
Nyall Dawson
63bc64d1fa SAGA test tolerance 2021-02-08 13:23:41 +10:00
Nyall Dawson
6f8833d070 More saga test tolerance 2021-02-08 13:23:40 +10:00
Nyall Dawson
32df2d7966 SAGA silliness 2021-02-08 13:23:40 +10:00
Nyall Dawson
6c0fbe822e More tolerance in SAGA tests 2021-02-08 13:23:40 +10:00
Nyall Dawson
22fc50f6bf Disable r.rescale test -- cause intermitten segfaults in GRASS on CI (not our fault) 2021-02-08 13:23:40 +10:00
Nyall Dawson
7e691b561e Disable the i.pansharpen test -- GRASS on CI raises a python exception when running this tool (not our fault) 2021-02-08 13:23:40 +10:00
Nyall Dawson
39acbf86c7 More SAGA test nonsense 2021-02-08 13:23:40 +10:00
Nyall Dawson
bbe2ffeeef Disable some SAGA tests, make others more tolerant
Life is too short to deal with SAGA
2021-02-08 13:23:40 +10:00
Nyall Dawson
deea4fbe58 Update grass tests 2021-02-08 13:23:40 +10:00
Nyall Dawson
3f2dc1504f On newer GRASS versions i.eb.hsebal01 requires a raster layer for vapourpressureactual, not a numeric value 2021-02-08 13:23:40 +10:00
Nyall Dawson
1629a576dc Add grass raster hashes 2021-02-08 13:23:40 +10:00
Nyall Dawson
1be431d93e v.rast.stats refuses to create shapefiles in newer grass versions, so use a different format 2021-02-08 13:23:40 +10:00
Nyall Dawson
404d2bc563 Add a reference hash 2021-02-08 13:23:40 +10:00
Nyall Dawson
0573a8dba6 Fix crs of reference dataset 2021-02-08 13:23:40 +10:00
Nyall Dawson
43b5f00267 Trust GDAL gives correct results given that we are confident we are creating the correct command line string 2021-02-08 13:23:40 +10:00
Nyall Dawson
1e82802d41 Fix SHAPE_ENCODING argument should not always get escaped 2021-02-08 13:23:40 +10:00
Nyall Dawson
61c1efe954 Add reference prj file for proj 6+ 2021-02-08 13:23:40 +10:00
Nyall Dawson
d4f2b842ba Allow for multiple reference text files 2021-02-08 13:23:40 +10:00
Nyall Dawson
0db5fabd05 Fix comparison of GDAL crs arguments to expected on proj 6+ 2021-02-08 13:23:40 +10:00