716 Commits

Author SHA1 Message Date
Alexander Bruy
7543fabc91 add "resample" to the list of tags for GDAL's warp algorithm (fix #49208) 2023-06-08 08:39:25 +10:00
Harrissou Sant-anna
52ec6016a7
Add 'Int8' as raster data types to Processing GDAL algorithms (#51755) 2023-06-01 22:39:01 +02:00
nicogodet
bf93dc6f17 Re-arange code 2023-04-30 09:32:11 +10:00
nicogodet
77ddb28e4b Move creation options to latest arguments 2023-04-30 09:32:11 +10:00
Etienne Trimaille
9e8364a271
Python - Use some format function for translations 2023-04-25 09:43:54 +02:00
Etienne Trimaille
3cab3c43a2
Python - Run pyupgrade on the processing plugin 2023-04-24 10:03:57 +02:00
nicogodet
8a5fb3a25e Add -overwrite to gdalwarp permanently 2023-03-29 06:05:11 +10:00
Luke Pinner
aba9dfbcd3
[feature][processing] Add skip/src/dstnodata params to gdal2xyz 2023-03-24 12:17:46 +10:00
Nyall Dawson
30598b9ad9 Pass QgsProcessingContext on to all processing functions which
generate temporary file names
2023-03-21 03:50:08 +10:00
Nyall Dawson
84c3613cf7 [processing] Don't raise uncaught exceptions when trying to generate
GDAL commands for invalid layers

This is a partial fix, which at least removes the uncaught exception.
Ideally we'd gracefully fall back to using the layer's source
(even if it doesn't exist!) in the generated GDAL commands. But that's
far from trivial to do.

Fixes #51958
2023-02-23 20:48:04 +10:00
Etienne Trimaille
fb5ca4c010 Flake8 - Check duplicated definitions for python imports and functions 2023-02-03 08:48:03 +10:00
Loïc Bartoletti
5e569170c4
Merge pull request #50889 from AlisterH/patch-3
Use more universally recognised extensions for world files
2023-01-16 11:13:21 +01: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
Nyall Dawson
f045fa2420 Followup aa590b7, more tolerant progress matching 2022-11-30 08:14:02 +10:00
Nicolas Godet
aa590b7302 Better handling of GDAL progess report 2022-11-29 09:44:42 +10:00
AlisterH
a53a8fea20
accept code formatting suggestion
Co-authored-by: Andrea Giudiceandrea <andreaerdna@libero.it>
2022-11-22 13:38:30 +13:00
AlisterH
3ea934a687
Use .wld if original file extension is too short 2022-11-15 21:12:11 +13:00
AlisterH
41d38250be
Use more universally recognised extensions for world files 2022-11-15 19:14:24 +13: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
Even Rouault
ab7feb6e15 [Processing] Fix typo in smoothing parameter name of gdal_grid algorithms
The correct spelling is 'smoothing' (two o's): https://github.com/OSGeo/gdal/search?q=smoothing
No match with single o: https://github.com/OSGeo/gdal/search?q=smothing
2022-09-26 12:47:31 +10:00
Andrea Giudiceandrea
78d764e42a GDAL Rasterize: check earlier for parameter validity 2022-02-06 10:01:00 +01:00
Andrea Giudiceandrea
8e4a6d6e8b [processing] GDAL Rasterize: add extent CRS conversion 2022-02-05 12:49:31 +01:00
Andrea Giudiceandrea
98d5eb686e
[processing] GDAL Rasterize: make extent parameter optional
The corresponding -te parameter in gdal_rasterize is optional (if not specified, it defaults to the extent of the input vector layer)
2022-02-05 11:39:59 +01:00
Alexander Bruy
9ba642fa49 don't re-add layer to the temporary store 2022-02-01 08:26:43 +10:00
Alexander Bruy
efa4e885be [processing] reload output layer after GDAL rasterize (fix #45729) 2022-02-01 08:26:43 +10:00
Alexander Bruy
1c096ceb52 allow negative values for buffer distance in GDAL buffer algorithm (fix #46667) 2022-01-06 17:53:54 +10:00
nirvn
406520f754 [processing] Add an optional output extent to the gdal raster calculator algorithm 2022-01-02 13:15:43 +07:00
nirvn
17b9bb8a60 [processing] Add the missing optional extent param to the gdal clip raster by mask aglorithm 2021-12-30 11:22:37 +07:00
Nyall Dawson
0d332d34ec [processing] Fix gdal algorithms immediately show wrong or missing
parameter value warnings

Fixes #46532
2021-12-21 15:32:08 +10:00
Nyall Dawson
14436df648 Update python/plugins/processing/algs/gdal/ogr2ogr.py 2021-12-09 13:01:00 +10:00
Nyall Dawson
e7a4e1754d Update python/plugins/processing/algs/gdal/ogr2ogr.py 2021-12-09 13:01:00 +10:00
Nyall Dawson
87cd100d30 Update python/plugins/processing/algs/gdal/ogr2ogr.py 2021-12-09 13:01:00 +10:00
Benoît Blanc
517aaceff1 Add help string for parameter 2021-12-09 13:01:00 +10:00
Benoît Blanc
28ff415b74 Add supported formats in doc 2021-12-09 13:01:00 +10:00
Benoît Blanc
83a15538e9 Add description for gdal:convertformat in short help string 2021-12-09 13:01:00 +10:00
Benoît Blanc
03d495c31c Rename parameter to convert all layers 2021-12-09 13:01:00 +10:00
Benoît Blanc
495af5a724 Add parameter to skip layername in gdal:convertformat 2021-12-09 13:01:00 +10:00
Alexander Bruy
eb5bce67e9 [processing] fix order of command line arguments in gdal_polygonize (fix #46045) 2021-11-16 07:12:14 +11:00
Alexander Bruy
16d2eb276d [processing] multidirectional and combined shading options are mutually
exclusive (fix #45957)
2021-11-10 08:06:39 +11:00
nicogodet
f6e20c3e0b fix tiny mistakes 2021-10-07 08:31:54 +10:00
PeterPetrik
0150ab8708 fix #41870 force UTF-8 encoding for prj files 2021-10-06 06:10:30 +10:00
Andrea Giudiceandrea
44744e2679 [processing] Fix NODATA parameters in GDAL Merge alg
Set NODATA_INPUT and NODATA_OUTPUT as QgsProcessingParameterNumber.Double parameters, instead of QgsProcessingParameterNumber.Integer
2021-09-11 06:15:47 +10:00
AlisterH
c1c068b28b
Add tags for gdal_edit processing algorithm (#43484) 2021-06-03 07:03:23 +10: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
Andrea Giudiceandrea
e11b7f0230 [processing][gdal] Fix parsing of creation options for Roughness alg 2021-03-16 11:36:09 +10: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
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
Nyall Dawson
fe566bcc09
Merge pull request #41847 from nyalldawson/fix_41839
Fix many issues in gdal algs...
2021-02-27 09:34:39 +10:00
Nyall Dawson
6a7e4c133e [processing][gdal] Fix escaping of connection string in OGR to postgis
alg

Fixes #41839
2021-02-26 12:05:53 +10:00