Germán Carrillo
e7d2cffbb3
[tests] Use mocked WMS layers to test XML description file generation from GdalUtils
2025-09-09 13:38:16 +10:00
Germán Carrillo
6d8bd5592d
[tests] Add tons of unit tests for QgsProcessingRasterLayerDefinition, testClipRasterByExtent() and testClipRasterByMask()
2025-09-09 13:38:16 +10:00
Germán Carrillo
ed14d45755
Address review: Add QgsProcessingParameterRasterLayer's parameter capabilities flags and associated getter/setter, to allow algorithms to state that a raster layer supports the advanced raster options panel
2025-09-09 13:38:16 +10:00
Germán Carrillo
40180873ff
Address review: move some WMS-related logic to GdalUtils
2025-09-09 13:38:16 +10:00
Germán Carrillo
8ce111115c
[core] Introduce QgsWmsUtils to get centralized access to WMS related utilities
2025-09-09 13:38:16 +10:00
Germán Carrillo
9e67aca98f
Address review (miscellaneous): Scale parameter from long to double; use processing API to create temp files
2025-09-09 13:38:16 +10:00
Germán Carrillo
2ff37c737c
Adress review: Replace Python's Element Tree by Qt DOM API
2025-09-09 13:38:16 +10:00
Germán Carrillo
4eb52e461d
[processing] Adapt algorithm 'Clip raster by mask' to use QgsProcessingRasterLayerDefinition, and thus, support clipping WMS layers by extent, setting a reference scale and DPI for the WMS (e.g., to preserve symbology/labeling).
2025-09-09 13:38:16 +10:00
Germán Carrillo
66d16fb836
[processing] Adapt algorithm 'Clip raster by extent' to use QgsProcessingRasterLayerDefinition, and thus, support clipping WMS layers by extent, setting a reference scale and DPI for the WMS (e.g., to preserve symbology/labeling). Make sure function Gdalutils._wms_dimensions_for_scale() works for GCSs as well as for CRSs with inverted axis (for WMS v1.3.0).
2025-09-09 13:38:16 +10:00
Germán Carrillo
d232e9583c
[processing] Add methods to GdalUtils to calculate WMS dimensions in pixels for a given bbox, scale and dpi, so that we can request a WMS at a specific scale (and preserve the scale-dependant symbology/labeling)
2025-09-09 13:38:16 +10:00
Germán Carrillo
1e1c758030
[processing] Add method to GdalUtils to get an XML description file for a WMS, so that GDAL can connect to it
2025-09-09 13:38:16 +10:00
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
39543e7c86
add missing import
2025-05-17 10:16:44 +01:00
Alexander Bruy
1840dfef0d
raise exception when algorithm requires layer name, but layer name is
...
not set
2025-05-17 06:48:03 +01: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
Nyall Dawson
b114e0aef3
Fix duplicate parameter warning in gdal rasterize algorithm
2025-04-24 10:19:56 +10:00
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
Juergen E. Fischer
d9b5d8c9c5
update_ts.sh: alternatively use pylupdate6 + python translation string fixes
2025-03-23 23:23:02 +01:00
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