751 Commits

Author SHA1 Message Date
Jean Felder
8bc8941b1d processing/gdal: Ensure to flush the buffer once finished 2025-03-13 07:21:24 +10:00
pre-commit-ci[bot]
88383c3d16 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-02-15 08:36:08 +10:00
Harrissou Sant-anna
d5c1c6d168 Add help to GDAL raster Slope and Proximity algs parameters
and remove passive form text on labels
2025-02-15 08:36:08 +10:00
pre-commit-ci[bot]
401f6d3844 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-02-12 11:32:35 +01:00
Benjamin Jakimow benjamin.jakimow@geo.hu-berlin.de
d4399cdc84 truncates double inputs to -ts WIDTH HEIGHT 2025-02-12 11:32:35 +01:00
Benjamin Jakimow benjamin.jakimow@geo.hu-berlin.de
d570f81db5 ensures that "gda:rasterize" uses integer numbers as input to -ts parameter
fixes #60524
2025-02-12 11:32:35 +01:00
Harrissou Sant-anna
3ff6ca6556 Remove optional flag next to Processing algs Boolean parameters - fixes #59794 2024-12-12 09:40:29 +10:00
Denis Rouzaud
0f032e5f2d run pre-commit on all files 2024-11-29 15:38:02 +01:00
AlisterH
7726067f87 Update Datasources2Vrt.py
Remove out-of-date statement from help.
2024-11-26 09:09:13 +10:00
mazano
6ca60b7502
[ogr2ogr] Fix promote to multipart logic and add makevalid option (#58440) 2024-10-18 07:45:43 +10:00
Nyall Dawson
2c34056199 pyqt5_to_pyqt6.py run 2024-10-17 17:58:49 +10:00
Andrea Giudiceandrea
3d8a7a7a80 [processing][feature] Enhance gdal:ogrinfo - Add gdal:ogrinfojson 2024-07-11 08:58:22 +10:00
uclaros
22895e6b6f Allow postgresraster layers as gdal processing tools input 2024-07-11 08:37:02 +10:00
Nyall Dawson
4c2983189f
When an OGR algorithm is run on a GRASS provider vector layer,
export the layer to an OGR compatible source first

Use the same logic we use eg for auto-exporting memory layers
so that GDAL tools "just work" with GRASS provider vector
layers
2024-07-09 09:53:52 +10:00
Nyall Dawson
2d27784cee Raise exceptions if open options not supported by GDAL version 2024-06-27 13:07:25 +10:00
Nyall Dawson
e38849d750 Fix running GDAL algorithms on cloud storage layers
Correctly generate commands when run on eg /vsis3/ layer sources,
and translate credential options to "--config KEY VALUE" arguments
for GDAL commands
2024-06-27 13:07:25 +10: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
Nyall Dawson
18efe655e9 Pass vector layer open options over to GDAL command
Ensures that processing tools which use vector layers with open
options work correctly, respecting the layer's open option settings
2024-06-27 13:07:25 +10:00
Nyall Dawson
36e3c43f84 Make getOgrCompatibleSource API more flexible 2024-06-27 13:07:25 +10:00
Nyall Dawson
46a4241ace minor cleanup 2024-06-27 13:07:25 +10:00
Nyall Dawson
dcacebaeaa Cleanup API for GDAL processing provider uri conversion 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
4986525e6b Ensure calling isSupportedOutputValue doesn't add layer to project
This is an advance test only, and shouldn't result in layers
attempting to add to the project.

Refs #57698
2024-06-07 18:44:29 +10:00
Even Rouault
07067d37b5 python/plugins: turn on GDAL exceptions to avoid deprecation warning
Fixes #57344
2024-05-22 13:34:35 +10:00
Andrea Giudiceandrea
42f3a60743 Apply suggestions from code review 2024-02-18 06:52:52 +10:00
Andrea Giudiceandrea
3945c73b84 Rise an exception instead of an info message 2024-02-18 06:52:52 +10:00
Andrea Giudiceandrea
5a721c47c0 [processing] Fix GDAL "Fill NoData" algorithm
The gdal_fillnodata.py -nomask option is no longer supported since GDAL 3.4.0
2024-02-18 06:52:52 +10:00
Nyall Dawson
8f3944dabd Don't use QVariant(QVariant.Type) for NULL values in Python
Instead use qgis.core.NULL, so that the correct logic applies
for Qt6.
2024-02-07 19:35:28 +10:00
Nyall Dawson
c16a1e2b3d Update enums 2024-01-19 19:44:48 +10:00
Julien Cabieces
9d12ae8e6d [PyQt6] Add scope for enums and get rid of PyQt5.XXX import
this has been done automatically with the following comand line

./scripts/3to4/3to4.py --only-qgis3-compatible-changes ./python/plugins/
./scripts/3to4/3to4.py --only-qgis3-compatible-changes ./tests/src/python/
2024-01-10 21:15:27 +10:00
Sebastian Gutwein
1a8f6614c1 NoData harmonization 2023-12-24 07:26:49 -05:00
DelazJ
406e1d6b9a Harmonize user facing labels for GDAL resampling methods 2023-11-24 08:20:32 +10:00
Blottiere Paul
385fedd232 Add safeguard to all gdal algorithms 2023-10-19 13:31:42 +02:00
Blottiere Paul
9c8475e5b1 Add safeguard for -of option 2023-10-17 15:32:54 +02:00
Sandro Santilli
bcf83c17b6 Do not pass -projwin to gdal_translate when given rectangle is Null
Update testcase accordingly
2023-10-08 22:40:25 +02:00
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