6454 Commits

Author SHA1 Message Date
Nyall Dawson
83bc6be01c Fix broken processing script editor actions
SIP is totally messed up here -- the dialog wrapper or something
is always prematurely cleaned which results in broken QObject
connections throughout.
Hack around this by storing dialog instances in a global list to
prevent too early wrapper garbage collection
2023-07-24 19:44:04 +10:00
AkosSeres
14e2be69ae Fix formatting 2023-07-18 15:50:45 +10:00
AkosSeres
b800c90aa7 Fix high ram usage of XYZ tile generation 2023-07-18 15:50:45 +10:00
Nyall Dawson
e567b35cab Fix crash when trying to re-load a layer from processing results
into the project when that layer already exists in the project

Fixes #53576
Fixes #53729
2023-07-13 15:03:29 +10:00
Nyall Dawson
c547f56776 [feature] Add 'DTM Filter (slope-based)' algorithm for filtering a
digital elevation model in order to classify pixels into ground
and non-ground cells

This is a port of the SAGA "DTM Filter (slope-based)" tool to a native
QGIS algorithm.

It also serves as a nice reference algorithm for raster based tools
which operate on a neighbourhood of pixels.
2023-07-13 14:10:00 +10:00
Matthias Kuhn
1626b7e928 Move tests to QgisUnitTests 2023-07-07 14:29:28 +10:00
Loïc Bartoletti
c298bda614 Update python/plugins/processing/tools/dataobjects.py
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2023-07-05 06:06:10 +10:00
Loïc Bartoletti
09ac50fd36 move logic to QgsProcessingUtils and create a convenient method resolveDefaultEncoding() 2023-07-05 06:06:10 +10:00
Loïc Bartoletti
9bd8c1298c Processing: determine and set default encoding from locale
A shapefile can have a .cpg file to determine its encoding.
However, in processing, this file is not created when the
encoding is set to the magic "System" value.

This PR aims to propose to automatically determine the system
encoding using QT's codecForLocale.

So, even when using the magic "System" value, the cpg file
will be created with the true system encoding name.

Fixes #50603
2023-07-05 06:06:10 +10:00
ASAI Hitoshi
04952b447e Add antialias setting to raster tile processing plugin 2023-07-03 10:46:09 +10:00
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