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
Andrea Giudiceandrea
42f3a60743
Apply suggestions from code review
2024-02-18 06:52:52 +10:00
Andrea Giudiceandrea
5eb58df57e
Fix typo
2024-02-18 06:52:52 +10:00
Andrea Giudiceandrea
dbdf35be77
gdal:fillnodata Skip testing NO_MASK parameter if GDAL >= 3.4.0
2024-02-18 06:52:52 +10:00
Nyall Dawson
20d5b34cd3
Rename test_definition_file to definition_file
...
Otherwise unittest thinks the function is a test itself and runs it
accordingly, and then raises a deprecation warning because
return values are not permitted from test functions
2024-02-12 16:44:06 +10:00
Nyall Dawson
c16a1e2b3d
Update enums
2024-01-19 19:44:48 +10:00
Jean Felder
e0466ab5eb
plugins/tests: Port to QgisUnitTests
...
`unittest.TestCase` is deprecated.
2023-12-12 05:27:30 +10: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
0e7ab1d29f
add tests for GDAL algorithms
2023-09-22 09:40:49 +10:00
Jean Felder
1778cbbb0e
processing: Fix some gdal raster tests for gdal 3.6 and above
...
This has been tested with GDAL 3.4, 3.5, 3.6 and 3.7.
2023-08-19 06:18:53 +10:00
nicogodet
dd7b8acafb
Adapt tests
2023-04-30 09:32:11 +10:00
Etienne Trimaille
3cab3c43a2
Python - Run pyupgrade on the processing plugin
2023-04-24 10:03:57 +02:00
nicogodet
f6eb1a3e57
update tests
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
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
c1157fdb67
Tests for --extent
gdal_calc option
2022-10-17 14:10:00 +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
5f262509a5
GDAL Rasterize: additional test for extent CRS handling
2022-02-07 09:12:21 +01:00
Alexander Bruy
d03ea9cdbc
add tests for reloading output of the GDAL rasterize algorithms
2022-02-01 08:26:43 +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
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
09cfa8ae0a
add tests
2021-10-07 08:31:54 +10:00
Andrea Giudiceandrea
1b1e80de86
Fix test for gdal_merge with nodata value
2021-09-11 06:15:47 +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
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
c5dd8714a8
[processing] Fix escaping of srcnodata argument in Build Virtual Raster
...
alg
2021-02-26 12:02:59 +10:00
Nyall Dawson
33b0dbe761
[processing][gdal] Fix escaping of delimiter parameter in retile
...
algorithm
2021-02-26 11:50:51 +10: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
0db5fabd05
Fix comparison of GDAL crs arguments to expected on proj 6+
2021-02-08 13:23:40 +10:00
Alexander Bruy
554ce82c32
[processing] test for newly added parameter in Clip Raster by Extent
...
(followup 41dc20c2c1)
2020-10-28 18:35:29 +02:00
rldhont
f5b819fc4c
[Tests] Check that GDAL Assign Projection updates QgsRasterLayer info
2020-07-31 14:32:48 +02:00
nirvn
5385ae64d4
[processing] Make gdaladdo optional parameters truly optional
2020-06-10 13:13:58 +07:00
Nyall Dawson
b6a7a10703
Fix some more python formatting issues, remove more flake exceptions
2020-05-11 11:41:50 +10:00
Paul Wicks
b73bd58cfb
[FEATURE][processing] New algorithm "Contour Polygons"
...
With similar functionality to the existing GDAL contour algorithm, but exporting polygon representations of the contours
2020-04-08 08:34:55 +10:00
Alexander Bruy
cf6cd48b38
fix typo
2020-01-06 11:19:55 +10:00
Alexander Bruy
5e62e60de9
[processing] add user-defined parameters to gdal_rasterize
2020-01-06 11:19:55 +10:00
Alexander Bruy
02fbe42a30
[FEATURE][needs-docs][processing] add gdal_viewshed algorithm
2019-11-06 13:40:34 +10:00
Alexander Bruy
db2b38d08e
tests for rasterize_over_fixed
2019-11-05 12:44:43 +10:00
Alexander Bruy
302dc668c7
tests for rasterize_over
2019-11-05 12:44:43 +10:00
Alexander Bruy
3701d360a1
remove unused variable
...
fix tests
2019-11-03 21:25:52 +10:00
Geoff Kimbell
283c8b813a
[processing] fix gdalwarp handling of custom projection for target extent
...
Fixes #31276
2019-09-07 08:24:14 +10:00
Alexander Bruy
109d1fb7a8
[processing] pass layer name to the gdalwarp to avoid issues with
...
multi-layer datasources (fix #30292 )
2019-07-15 16:05:16 +03:00
Alexander Bruy
543673c388
also split YAML-based tests into raster and vector and run them as part
...
of the corresponding algorithms test
2019-06-25 11:50:36 +03:00
Alexander Bruy
f16f7f765e
reorganize gdal provider tests
...
Now GDAL algorithms test are splitted into parts: general tests, raster
algorithms and vector algorithms. This makes testing a bit faster and
easier, as there is no need to run not related tests.
2019-06-25 09:59:50 +03:00