pre-commit-ci[bot]
33fde971d7
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2025-06-05 13:51:12 +02:00
Matthias Kuhn
1f331f9a6a
Fix processing gdal algs
2025-06-05 13:51:12 +02:00
Even Rouault
635acf7c93
Remove GdalUtils.ogrOutputLayerName()
2025-05-28 11:32:30 +10:00
Even Rouault
4df0244c94
GdalUtils.ogrLayerName(): fix parsing a PostgreSQL non-spatial table
...
Fixes #61655
2025-05-28 11:32:30 +10:00
Alexander Bruy
76d8920bce
fix handling of virtual layers as inputs in GDAL Processing provider
...
(fix #59364 )
2025-05-16 05:59:57 +01:00
Jean Felder
8bc8941b1d
processing/gdal: Ensure to flush the buffer once finished
2025-03-13 07:21:24 +10:00
Denis Rouzaud
0f032e5f2d
run pre-commit on all files
2024-11-29 15:38:02 +01:00
uclaros
22895e6b6f
Allow postgresraster layers as gdal processing tools input
2024-07-11 08:37:02 +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
dcacebaeaa
Cleanup API for GDAL processing provider uri conversion
2024-06-27 13:07:25 +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
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
Etienne Trimaille
3cab3c43a2
Python - Run pyupgrade on the processing plugin
2023-04-24 10:03:57 +02: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
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
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
c5dd8714a8
[processing] Fix escaping of srcnodata argument in Build Virtual Raster
...
alg
2021-02-26 12:02:59 +10:00
Nyall Dawson
ea113cbf4a
[processing][gdal] ";" characters must be escaped when running gdal
...
commands
2021-02-26 11:30:49 +10:00
Andrea Giudiceandrea
d43245c6ac
[processing] Fix sort order of output raster extensions list
...
to make it easier to find the extension in the long list of available extensions in the "Save to File" window of the GDAL provider algorithms
2021-02-25 07:49:02 +01:00
Andrea Giudiceandrea
91c8b23e90
[processing] Fix GdalUtils getSupportedRasters()
...
in order to correctly retrieve multiple extensions from GDAL drivers metadata DMD_EXTENSIONS instead of DMD_EXTENSION. See https://gdal.org/development/rfc/rfc46_gdal_ogr_unification.html#drivers-and-driver-registration
2021-02-25 07:36:19 +01: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
af0fb8bb87
[processing] Fix GDAL algorithms hang when gdal command is not available to run
2021-02-21 15:04:31 +10:00
Evan Derickson
0e63799012
Reduce appends
2021-02-20 12:26:00 +10:00
Nyall Dawson
988ad72926
Quotes also need to be escaped in gdal argument values
2021-02-08 13:23:40 +10:00
Nyall Dawson
716e74c74a
[processing] Use correct means to escape " values in GDAL commands
2021-01-09 07:16:14 +10:00
Nyall Dawson
b14dc49c85
[processing] Catch the gdal process console progress report output
...
and show algorithm progress bars when running GDAL algorithms
2021-01-09 07:16:14 +10:00
Nyall Dawson
50b5e563af
[processing] Use QgsBlockingProcess instead of subprocess to run GDAL algorithms
...
This gives us much more flexibility when running the process, as we can
now do things like report feedback messages directly without having
to resort to potentially unsafe event loops regardless of whether the
algorithm is run in the main or a background thread.
2021-01-09 07:16:14 +10:00
Nyall Dawson
e79922b2cc
[processing] Return log lines from GdalUtils.runGdal instead of storing
...
in a class member
The previous approach was NOT thread safe, and it's easy to avoid
2021-01-09 07:16:14 +10:00
Nyall Dawson
02f861c339
[processing] Translate some strings when running gdal algorithms
2021-01-09 07:16:14 +10:00
Alexander Bruy
bfdb99fe65
[processing] correctly escape parentheses in GDAL command ( fix #39525 )
2020-10-28 06:07:27 +10:00
Even Rouault
c6fe79b60d
[Processing] GdalUtils: fix quoting of arguments with '&' ( fixes #38674 )
2020-09-15 07:38:01 +10:00
Nyall Dawson
b6a7a10703
Fix some more python formatting issues, remove more flake exceptions
2020-05-11 11:41:50 +10:00
Nyall Dawson
5b6589f6dc
Cleanup QgsCoordinateReferenceSystem WKT enum
...
- alias WKT_2018* to new WKT_2019* values, since the spec is actually
2019, not 2018
- add WKT_PREFERRED value which currently aliases to WKT2_2019, but
can be changed if/when future bumps to the WKT spec happen
- add WKT_PREFERRED_GDAL which should be used whenever a CRS is
exported to WKT for use with GDAL API. Aliases to WKT2_2019 currently,
but can be changed if/when a new spec is released and GDAL supports it
2020-04-24 03:59:28 +10:00
Nyall Dawson
8b54d2f06c
[processing] Fix conversion of ESRI CRS when running GDAL algorithms under proj 6
...
Fixes #35123
2020-03-17 16:58:09 +10:00
Nyall Dawson
b37dd0984e
Rip off a band aid, and deprecate all "proj4" calls from the API
...
Alias these across to new "proj" methods, which don't include the
version number.
2019-12-20 12:13:06 +10:00
Alexander Bruy
af77d68716
return only base URL as connection string
...
adopt ogrinfo and ogrtabletopostgis algorithms so they can work with WFS
2019-09-13 11:11:53 +03:00
Alexander Bruy
4b7eaa4b9c
[processing] support for WFS layers in GDAL algorithms ( fix #29663 )
2019-09-13 09:14:04 +03:00
Juergen E. Fischer
19933e0feb
processing: avoid fetching the layer parameters when not executing
2019-06-01 09:10:39 +02:00
Juergen E. Fischer
5a54eb7739
processing: add option to select directory to recurse for files (fixes regression with a number of tools that used to have this - eg. buildvrt for instance)
2019-05-31 19:02:48 +02: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
e5a416ea11
[processing][gdal] Ensure no filename clashes occur in writeLayerParameterToTextFile
2019-02-19 12:55:15 +10:00
Nyall Dawson
06d5b996bf
[processing][gdal] Fix polygonize field name is ignored
2019-02-06 04:16:40 +11:00
Harrissou Sant-anna
ea9b09f2dc
Use QGIS user manual for GDAL algorithms help files
...
because they are available for most of the algs and wouldn't be used otherwise. Also when someone hits algA help button, he should be given the algA help and not the main gdal utility doc.
2018-12-27 06:53:19 +10:00
Nyall Dawson
7977450796
[processing][ogr] Fix conversion of non-disk based layer sources
...
to GDAL commands
Fixes #19946
2018-09-28 13:36:50 +10:00
Nyall Dawson
e005d6e2b9
[processing][gdal] Strip newlines from custom proj CRS definitions
...
before passing to GDAL commands
Fixes #19855
2018-09-18 14:57:22 +10:00