47 Commits

Author SHA1 Message Date
Alexander Bruy
598233d881 fix test 2025-04-12 11:00:42 +01:00
Alexander Bruy
5bde6fec42 harmonize parameter name in Processing algorithms 2025-04-12 11:00:42 +01:00
Denis Rouzaud
0f032e5f2d run pre-commit on all files 2024-11-29 15:38:02 +01:00
Nyall Dawson
2ab2d34947 Correctly handle open options for raster GDAL algorithm inputs
And handoff to GDAL command when command supports them
2024-06-27 13:07:25 +10:00
Alexander Bruy
ad126316d3 use core raster options widget in GDAL algorithms 2024-06-26 21:50:27 +10:00
Nyall Dawson
c16a1e2b3d Update enums 2024-01-19 19:44:48 +10:00
Sebastian Gutwein
1a8f6614c1 NoData harmonization 2023-12-24 07:26:49 -05:00
Harrissou Sant-anna
52ec6016a7
Add 'Int8' as raster data types to Processing GDAL algorithms (#51755) 2023-06-01 22:39:01 +02:00
Etienne Trimaille
3cab3c43a2
Python - Run pyupgrade on the processing plugin 2023-04-24 10:03:57 +02:00
Nyall Dawson
59332bb40d [processing] Fix incorrect GDAL raster calc sources for layers when
the extent handling option is set
2022-12-08 12:06:02 +10:00
nicogodet
94c0998d0f Move all --projwin and --extent checks to getConsoleCommands 2022-10-17 17:53:06 +02:00
nicogodet
126f3b0300 Add --extent option to gdal_calc 2022-10-17 13:55:01 +02:00
nirvn
406520f754 [processing] Add an optional output extent to the gdal raster calculator algorithm 2022-01-02 13:15:43 +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
Nyall Dawson
2cbffdd9bc [processing][gdal] Partially revert 570972b22707533
- gdal_calc command is gdal_calc.py, not gdal_calc
- commandName() method is used for more than just the command line
generation, so move extension handling to getConsoleCommands() only
2021-02-27 11:43:40 +10:00
Juergen E. Fischer
570972b227 processing/gdal: use batch files instead of modules on windows 2021-02-21 17:46:14 +01:00
Evan Derickson
0e63799012 Reduce appends 2021-02-20 12:26:00 +10:00
Nyall Dawson
b6a7a10703 Fix some more python formatting issues, remove more flake exceptions 2020-05-11 11:41:50 +10:00
Alexander Bruy
3701d360a1 remove unused variable
fix tests
2019-11-03 21:25:52 +10:00
Giovanni Manghi
74d6e099e6 fix gdal calc compression options 2019-11-03 21:25:52 +10:00
Alexander Bruy
5b27b72191 allow additional parameters for gdal_calc 2019-06-25 09:59:50 +03: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
Nyall Dawson
c93775f6b1 [processing][gdal] Ensure that GDAL algs output the CORRECT
generated filename for outputs

Previously they were just echoing the input parameter value,
which isn't always a string and accordingly was broken for
temporary outputs. This caused models to break when the output
of a GDAL algorithm was used in a subsequent model step.
2019-02-05 16:55:34 +11:00
Juergen E. Fischer
239e93deeb run gdal_calc on Windows and gdal_calc.py on othes platforms (fixes #19482) 2018-09-17 02:34:36 +02:00
Alexander Bruy
f524460379 [processing] homogenize label for 'additional creation options'
parameter in GDAL algorithms
2018-08-02 12:11:20 +03:00
Luigi Pirelli
9b28e3d7f5 Port gdalcalc with formula excaping fix (#6984)
Resurrect gdalcalc algorithm from 2.x
2018-05-15 07:59:00 +10:00
Alexander Bruy
53bc147dca [processing] add group id to GDAL algorithms 2017-12-14 18:04:11 +02:00
Nyall Dawson
96c7e6e0a6 [processing][gdal] Cleanup some code, add method to customise
generated command based on whether the algorithm is actually
executing or just being displayed in the UI as a command
2017-12-08 14:09:08 +10:00
Alexander Bruy
3d4a59bb8b [processing] cleanup files from unused code and remove some files 2017-11-28 12:27:45 +02:00
Alexander Bruy
0059b2b692 [processing] remove Python 2 compatibility layer 2017-11-28 12:27:45 +02:00
Nyall Dawson
ce8e18da10 Fix overridden function signatures 2017-08-14 04:56:24 +10:00
Nyall Dawson
4cb7d18b1c Push parameters into processAlgorithm and related functions 2017-06-06 07:41:19 +10:00
Nyall Dawson
77ab933788 Move alg character definitions to __init__ 2017-06-06 07:41:19 +10:00
Nyall Dawson
a0bd464232 Use formatted name for algorithm names
Avoids conversion of names later and gives clearer separation
between visible names and internal names
2017-04-03 21:17:45 +10:00
Nyall Dawson
6987d7b37c Port handling of algorithm names to QgsProcessingAlgorithm 2017-04-03 21:17:45 +10:00
Nyall Dawson
dc729c1b5a Move algorithm group handling to QgsProcessingAlgorithm 2017-04-03 21:17:45 +10:00
Alexander Bruy
dbca0304d9 [processing] rename algorithm groups in GDAL provider 2017-02-28 12:37:48 +02:00
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
rldhont
793b712eb9 [Processing][GDAL] Well manage optional parameters
Because EXTRA and NO_DATA parameters are optional, the value can be `None` which is the same as `''`.
2016-04-26 14:18:41 +02:00
Giovanni Manghi
a4b2cde5bb more GDAL a_nodata fixes, for sake of uniformity 2016-04-25 22:09:42 +01:00
Juergen E. Fischer
c6d921729e python fixes:
* issues identified by pyflakes (star and unused imports)
* pyqtwrapper: add QtSvg
* some exceptions e.message => unicode(e)
* some translations tr("..." % foo) => tr("...") % foo
* TODO:
  python/console/console_sci.py:547 QsciScintillaCompat?
  python/plugins/db_manager/dlg_query_builder.py:304 pop_up_error?
2016-03-15 17:25:23 +01:00
Juergen E. Fischer
b39055b39c indentation update (now including autopep8) 2015-08-22 14:29:41 +02:00
Matthias Kuhn
9fc1b48bf3 Replace str() with unicode() and some PEP 8 2015-08-16 20:58:43 +02:00
Juergen E. Fischer
66a3d02240 integrate processing into update_ts.sh (also includes all translations
in the repository and none outside of it).
2015-07-26 04:28:37 +02:00
volaya
1964a7c744 [processing] added box with console commands for gdal/ogr algs 2015-05-07 13:20:28 +02:00
pcav
686ba43c07 Better naming for GDAL outputs (partial fix for http://hub.qgis.org/issues/12542) 2015-04-10 09:44:20 +02:00
Alexander Bruy
5260ef3992 unify algorithm name and source file name, formatting fixes 2015-02-24 11:25:50 +02:00