538 Commits

Author SHA1 Message Date
Denis Rouzaud
0f032e5f2d run pre-commit on all files 2024-11-29 15:38:02 +01:00
Nyall Dawson
c685a9aa77 Replace processing default extension setting with string based setting
Change the setting key to force a reset for all users, and move to
a stable string based setting instead of a fragile int index key

Fixes #57676
2024-06-07 18:44:57 +10:00
Maris Nartiss
cb63fe9a77 Processing: do not store Processing configuration keys if value matches default
If for some reason Processing configuration gets stored into configuration file,
previous code saved default menu paths in configuration. If GUI language changes,
custom values stored in the configuration take precedence over default ones
(= default translated ones are not used). This fix removes menu keys from config
for default value and thus allows to fall back to default menu items on language
switch.

Fixes #52449 (and related issues)
2024-05-01 10:31:23 +10:00
Nyall Dawson
e5f7accc6a use another enum 2024-02-10 17:25:22 +10:00
Nyall Dawson
aeacb8fe07 Use enums, not raw ints 2024-02-10 17:25:22 +10:00
Nyall Dawson
0ab66b7b6f Rename grass provider files and classes to remove hardcoded version
number
2024-02-06 18:31:48 +10:00
Nyall Dawson
c16a1e2b3d Update enums 2024-01-19 19:44:48 +10:00
Nyall Dawson
5be709361b Don't initialize project provider from qgis_process -- project
models can't be called from qgis_process anyway
2023-12-07 16:20:25 +10:00
Nyall Dawson
e4e63ce5f9 [processing] When running qgis_process commands, defer the model
provider loading until after ALL plugins have been loaded

This avoids the model provider from refreshing all the model
algorithms multiple times, once for each non-default plugin installed
which implements a processing provider.
2023-12-07 16:20:25 +10:00
Nyall Dawson
58e2ddb7e5 Drop OTB Processing provider
As discussed in https://lists.osgeo.org/pipermail/qgis-developer/2023-November/066221.html

This plugin needs to be ported to a 3rd party plugin by a motivated maintainer.
2023-11-27 10:09:16 +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
26ce45d6d5 Remove unused argument 2023-05-03 18:29:28 +10:00
Etienne Trimaille
3cab3c43a2
Python - Run pyupgrade on the processing plugin 2023-04-24 10:03:57 +02: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
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
Germán Carrillo
ca179c55d2 [processing] Add generic option to show feature count for processing vector outputs (fix #39522) 2022-08-28 20:08:28 +10:00
Nyall Dawson
dd368a4289 When processing is initialized in external scripts, ensure the GRASS,
SAGA and OTB providers are included by default

Fixes #45935
2022-02-01 18:14:48 +10:00
Nyall Dawson
8ef270b2cc [processing] Remove unused 'preconfigured' provider 2022-01-17 16:12:40 +10:00
Nyall Dawson
5e5540c890 [processing] Port algorithm log to new history provider API
No user visible changes, but we gain the flexibility for better
history storage, including the ability to store the outputs
calculated by the algorithm execution...!
2021-12-21 15:32:57 +10:00
Alexander Bruy
88d7a62321 [processing] add point cloud output and point cloud destination parameter
to Processing. These are useful for 3rd party tools as outputs can be
automatically loaded on algorithm completion.

It is an API change not visible for users.
2021-11-26 15:37:27 +10:00
Nyall Dawson
c2c0f2574d [processing] Add parameter type for annotation layers 2021-09-11 07:59:51 +10:00
Alexander Bruy
cfc72ca5f9 handle new point cloud parameter in description files (follow up
f801cb6816)
2021-08-23 09:18:35 +10:00
Andrea Giudiceandrea
f55b5b9e6f Fix UnicodeDecodeError in Processing history 2021-06-24 07:53:51 +10:00
Alexander Bruy
82ad2051e6 fix file permissions
remove duplicated short help file
2021-06-21 07:17:36 +03:00
Alexander Bruy
cfc093d0e9 separate otb provider into a plugin 2021-06-21 07:17:36 +03:00
Alexander Bruy
cbe1a472ca add missed plugin files
fix CMakeLists.txt
2021-06-21 07:17:36 +03:00
Alexander Bruy
0c3f57fb86 fix CMakeLists and imports 2021-06-21 07:17:35 +03:00
rldhont
5586d4c6e9 [Processing] Fix specific exception type in getParameterFromString 2021-05-13 06:51:29 +10:00
rldhont
943acfd344 [Processing] Fix getParameterFromString to get Vector Layer data types like Feature Source
In Processing parameter description QgsProcessingParameterVectorLayer multi data types does not work as QgsProcessingParameterFeatureSource.
2021-05-13 06:51:29 +10:00
David Marteau
9eb172aa8e Add multipart option for processing geometry parameter 2021-03-31 08:59:20 +10:00
Evan Derickson
0e63799012 Reduce appends 2021-02-20 12:26:00 +10:00
Nyall Dawson
b4025442e8 [processing] Automatically load the native and 3d providers
when a script calls Processing.initialize() if they are not
already loaded

This means the following ugly code can be avoided:

    Processing.initialize()
    QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms(QgsApplication.processingRegistry()))
    QgsApplication.processingRegistry().addProvider(Qgs3DAlgorithms(QgsApplication.processingRegistry()))

and instead the call to Processing.initialize() is sufficient to load
ALL providers

Fixes #41310
2021-02-09 20:13:01 +10:00
Denis Rouzaud
eddf6feb45 modernize CMakeLists.txt files 2020-11-12 07:14:46 +10:00
Julien Cabieces
912dd770c0 [processing] Add missing parameter when reading QgsProcessingParameterField from string 2020-10-28 13:39:26 +10:00
Nyall Dawson
2207c30a24 When calling processing.run() and an QgsProcessingExpection occurs,
don't raise a generic "something went wrong" exception but instead
ensure that the original exception with the proper error message
is raised for catching in Python instead
2020-10-09 05:17:49 +10:00
David Marteau
aa0a8ab628 Add geometry filter for processing geometry parameter 2020-09-15 07:39:10 +10:00
David Marteau
4eb931e890 Add geometry processing parameter 2020-09-15 07:39:10 +10:00
Germán Carrillo
debe2209fe Add placeholder to ProcessingConfig (Setting class); use the placeholder for 'results group name' setting 2020-07-20 14:54:50 -05:00
Germán Carrillo
bf6f4c51e4 Load processing results to layer group (optional) 2020-07-20 12:25:06 -05:00
Nyall Dawson
c6690c2ee8 Create runtime profiles for various startup/provider initialisation
tasks in processing

Attempting to diagnose occasional very slow QGIS startup times
2020-05-19 04:35:34 +10:00
Nyall Dawson
b6a7a10703 Fix some more python formatting issues, remove more flake exceptions 2020-05-11 11:41:50 +10:00
Matthias Kuhn
a7e0831dcf Code style 2020-05-05 22:38:37 +02:00
Alexander Bruy
70c5018b74 map layer data type support in modeler 2020-03-14 08:51:02 +02:00
Alexander Bruy
56971a9880 handle map layer data type when parsing description files 2020-03-14 08:51:02 +02:00
Radoslaw Guzinski
8d1df2adb1 [Processing] Fix setting band parameter from string
Optional bool variables are in positions 5 and 6.
2020-02-20 09:32:07 +10:00
Nyall Dawson
06082a15c0 [processing] Improve temporary directory handling
- Make the new Temp Folder setting optional, default to an empty
string, and note that empty = use default
- Move responsibility for cleanup of temporary folders to c++ (if
Processing Python part crashes, or doesn't exist, then we still
want these cleaned up correctly)
2020-02-03 05:48:02 +10:00
Alexander Bruy
986930d28f [processing] use system temporary directory as default for Processing
temporary outputs (refs #33641)
2020-01-10 08:05:12 +13:00
David Signer
8274566b62 temp path for processing output configurable 2019-11-28 21:19:34 +10:00
Nyall Dawson
6b82917715 [processing] Refine behavior of "Use filename as layer name" option to
always avoid using temporary file names, and then set this option as
enabled by default.

Also change the setting key so that existing users will also get the new
default value.

Fixes #32591
2019-11-09 20:07:55 +10:00
lbartoletti
9e30319be7 [BUGFIX] Fix an hardcoded 'gpkg' extension in ProcessingConfig.py 2019-11-09 13:35:04 +10:00