6570 Commits

Author SHA1 Message Date
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
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
Clemens Korner
e1032d541a
Fix: #49145 Distance to nearest hub exception when No destination hubs 2023-01-11 10:25:48 +10:00
pathmapper
111b5a7c6d Small adjustments 2023-01-09 12:03:50 +10:00
pathmapper
0e533cda96 Make attribution more informative and translatable 2023-01-09 12:03:50 +10:00
pathmapper
9bcce8d9c7 Remove optional Leaflet attribution prefix 2023-01-09 12:03:50 +10:00
pathmapper
361faa9224 Update Leaflet to latest release 2023-01-09 12:03:50 +10:00
Yoann Quenach de Quivillic
1c79b4927d
[feature][console] Add toggle comment action in the python console (#50341)
Adds a toggle comment action in the Python Console and script editors
2023-01-07 09:27:08 +10:00
Alessandro Pasotti
d7ad954bc5
Merge pull request #51253 from tudorbarascu/selecticon
add "Select Within Distance" icon to the Selection Toolbar
2022-12-21 11:56:45 +01:00
Harrissou Sant-anna
d6b5b070d8 Remove unicode string notifier from python files 2022-12-11 08:58: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
Nicolas Godet
7b80b30c2a Fixes #50963 : Index already passed don't call findText 2022-11-24 08:01:47 +10:00
AlisterH
a53a8fea20
accept code formatting suggestion
Co-authored-by: Andrea Giudiceandrea <andreaerdna@libero.it>
2022-11-22 13:38:30 +13:00
Loïc Bartoletti
60e2c9874c
Merge pull request #50586 from nicogodet/gdalcalcextent
Add user interface for `--extent` gdalcalc option
2022-11-17 09:54:46 +01:00
AlisterH
3ea934a687
Use .wld if original file extension is too short 2022-11-15 21:12:11 +13:00
AlisterH
41d38250be
Use more universally recognised extensions for world files 2022-11-15 19:14:24 +13:00
Nyall Dawson
894a938fff [processing] Drop unmainted saga provider from QGIS install
This provider has not been maintained and does not work with
newer SAGA versions. Users are encouraged to use the 3rd-party
"Processing Saga NextGen" plugin instead.
2022-11-10 17:25:06 +10:00
Tudor Bărăscu
31ab3bfcbc address review and add QToolBox to group the Processing selects 2022-11-07 18:32:28 +02:00
Tudor Bărăscu
571c3ac5f7 add "Select Within Distance" icon to the Selection Toolbar 2022-10-25 07:56:22 +03:00
Tudor Barascu
627f43b495
Add Icon for "Select within distance" + add it to Vector -> Research Tools menu under "Select by location" (#50446)
* add Select within distance icon

* add select within distance to Vector -> research Tools Menu

* rework image according to review

* align image to grid
2022-10-25 10:35:02 +07:00
Ondřej Holešovský
854598d3b9 TilesXYZ.py - setTransformContext before rendering
Set transform context in QgsMapSettings before rendering tiles in order to respect all the desired CRS transformations configured in QGIS project settings.
2022-10-23 10:41:38 +10:00
Nyall Dawson
c9a2a5efa8 Fix some overlay algorithms output multipoint geometries but
output layer is single point, causing insertion errors

Fixes #49456
2022-10-20 13:59:49 +10:00
nicogodet
94c0998d0f Move all --projwin and --extent checks to getConsoleCommands 2022-10-17 17:53:06 +02:00