6444 Commits

Author SHA1 Message Date
Julien Cabieces
b4613b9839
Fixes #53204 : use setting from registry in processing config (#53458) 2023-06-14 10:25:36 +02:00
Nyall Dawson
30acad6819 Cleanup iface signal connections when unloading processing
plugin

Fixes #53455
2023-06-14 17:33:47 +10: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
Alexander Bruy
a84011ecd7 do not raise error in processing algoirthm if map tool previously used
by the canvas was destroyed (fix #53294)
2023-06-08 08:37:17 +10:00
Alexander Bruy
8923c43311 set default value for CRS parameter in Define Shapefile projection
algorithm (fix #53309)

If default value is not set and prameter is not optional its widget end
up in conflicting state: invalid CRS is set but widget requires a valid
one. As a result even if user selects a valid crs, widget fails to
validate selection.
2023-06-08 08:31:30 +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
Nyall Dawson
c32bc17973 Defer calling postProcessors until layers have been added to layer tree
It's possible that an algorithm's postProcessor may contain logic
relating to the layer tree, so make sure that all layers have
already been added to the tree before calling postProcessors
2023-05-10 13:17:55 +10:00
Nyall Dawson
a52e0bdd22 Respect layer output ordering when adding processing results layers 2023-05-03 18:29:28 +10:00
Nyall Dawson
70c91eb96b Always expand processing results groups by default 2023-05-03 18:29:28 +10:00
Nyall Dawson
f8ff71031d Minor lint fixes 2023-05-03 18:29:28 +10:00
Nyall Dawson
42e9b916c5 Respect output group name when loading layers 2023-05-03 18:29:28 +10:00
Nyall Dawson
26ce45d6d5 Remove unused argument 2023-05-03 18:29:28 +10:00
Nyall Dawson
2e83566aef More minor cleanups 2023-05-03 18:29:28 +10:00
Nyall Dawson
3651c8dd73 Refactor out some more postprocessing logic 2023-05-03 18:29:28 +10:00
Nyall Dawson
3d166989cb [processing] Cleanup some post-processing code 2023-05-03 18:29:28 +10:00
Alexander Bruy
3ab7530fff
Merge pull request #52959 from alexbruy/pdal-provider-ux
UX improvements for PDAL provider
2023-05-02 13:12:10 +03:00
Germap
7fac476c6f Adjust help for CheckValidity algorithm
Make it clear that GEOS method won't be able to log all errors found per geometry, but only the first one. Followup #49936.
2023-05-02 19:05:21 +10:00
Alexander Bruy
cbc6922fab try to assign 3d renderer to output point cloud layers 2023-05-02 09:42:43 +03:00
nicogodet
bf93dc6f17 Re-arange code 2023-04-30 09:32:11 +10:00
nicogodet
dd7b8acafb Adapt tests 2023-04-30 09:32:11 +10:00
nicogodet
77ddb28e4b Move creation options to latest arguments 2023-04-30 09:32:11 +10:00
Nyall Dawson
a6dac4299d More super call fixes 2023-04-27 04:39:14 +10:00
Nyall Dawson
953e3de749 Store full processing execution log in history entries 2023-04-26 16:52:36 +10:00
Etienne Trimaille
9e8364a271
Python - Use some format function for translations 2023-04-25 09:43:54 +02:00
Alexander Bruy
1c1e46029a address review 2023-04-25 05:41:04 +10:00
Alexander Bruy
a44bfaceef use threads number setting in algorithms which support multiple CPUs 2023-04-25 05:41:04 +10:00
Matthias Kuhn
283a8f5697
Merge pull request #52873 from Gustry/processing-update 2023-04-24 16:38:49 +02:00
Etienne Trimaille
3cab3c43a2
Python - Run pyupgrade on the processing plugin 2023-04-24 10:03:57 +02:00
Nyall Dawson
618c525691 Update python/plugins/processing/algs/qgis/TilesXYZ.py 2023-04-24 17:31:34 +10:00
Sebastian Gutwein
3d6e1e513d Set extent CRS to Project CRS
Tiles creation assumed extent crs was the same as project crs this pr adds a transform to get it to work if that is not the case.
2023-04-24 17:31:34 +10:00
Nyall Dawson
a4d6fd3ed5 Use QgsProcessingHistoryDialog for Processing history dialog
And remove old class
2023-04-24 13:09:46 +10:00
rldhont
41a95bfc35 [Bugfix] Processing plugin: bad check layer from QgsProcessingOutputMultipleLayers
After running algorithm, the processing plugin take the layer from result to provide map layer instead of string.
In the case of QgsProcessingOutputMultipleLayers, the instance check is not done on the layer but on an array.
2023-04-24 10:25:31 +10:00
Nyall Dawson
f794b17fa4 [processing] Port functionality from history dialog to history
provider framework
2023-04-23 18:12:14 +10:00
Nyall Dawson
72dd8880a6 Use registry level cache, not local cache for algorithm name/icon handling 2023-04-21 06:12:28 +10:00
nicogodet
f6eb1a3e57 update tests 2023-03-29 06:05:11 +10: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
6c8bda7bab Fix crash in processing script editor when text is changed programatically 2023-03-20 16:06:24 +10:00
Nyall Dawson
8a3ab39bd3 Fix invalid base class used in processing ui file 2023-03-20 16:06:24 +10:00
Nyall Dawson
f3132a8e10 [processing] Fix python script editor windows can get garbage collected
Fixes #52304
2023-03-20 16:06:24 +10:00
Nyall Dawson
80cc064354 [processing] Ensure distance/area units are respected in export
geometry info algorithm
2023-03-17 05:59:15 +10:00
Nyall Dawson
7cd6b616b1 Allow processing dialog to override default processing context settings 2023-03-17 05:59:15 +10:00
Nyall Dawson
4647cfccef [processing] Add "Keep disjoint results separate" option to buffer
algorithm

If checked, then any disjoint parts in the buffer results will be
output as separate single-part features. This setting is designed
to expose a similar functionality as is available for the 'dissolve'
algorithm.

Sponsored by City of Canning
2023-03-08 18:08:43 +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
Nyall Dawson
603ccb2904 [processing] Gracefully handle algorithms with no provider set
Fixes #51971
2023-02-23 19:38:45 +10:00
Nyall Dawson
f453d2cc0d [processing] Fix exception when setting output files in batch
processing after removing rows

Fixes #51664
2023-02-23 19:38:11 +10:00
Etienne Trimaille
fb5ca4c010 Flake8 - Check duplicated definitions for python imports and functions 2023-02-03 08:48:03 +10:00
pathmapper
64e001e406 Improve parameter names
Adress code review comment:
https://github.com/qgis/QGIS/pull/51522#discussion_r1083693553
2023-01-24 10:08:08 +10:00
pathmapper
f15ef4547b Add some options for Leaflet html output 2023-01-24 10:08:08 +10:00