207 Commits

Author SHA1 Message Date
Nyall Dawson
7dfef3a0b1 Newer doxygen versions don't auto convert the first line in a class'
documentation to a brief note, so we have to do it explicitly...
2021-02-19 08:15:29 +10:00
Nyall Dawson
50b9beaad6 [sipify] Catch more class references and insert :py:class: annotations 2021-01-31 05:41:22 +10:00
Nyall Dawson
b740bf201a [processing] Fix exception when calling "Select from Files" in batch mode
on a file parameter

Fixes #40705
2021-01-05 08:32:10 +10:00
Nyall Dawson
a9c80e5740 Code shuffle
Move vector, project and network related core .cpp/.h files into
dedicated subdirectories.

An attempt to organise src/core better to make things easier to find.
2020-12-29 11:38:11 +10:00
nirvn
04b9c6ab00 [processing] Add a warning-level information message feedback 2020-12-07 14:15:35 +07:00
Nyall Dawson
83ccb6554e [processing] Add method to set an explicit override for the default
value of a parameter for the GUI only

This allows us freedom to change the default settings for an algorithm
shown when opening the algorithm in the toolbox/batch/model without
changing the underlying default value used for the parameter in the
raw API (which we can't do easily without potentially breaking 3rd
party scripts/plugins)
2020-11-24 13:11:37 +10:00
Alexander Bruy
cc98fe30d9 support static (non-translated) strings as enum values in Processing 2020-11-19 19:33:18 +02:00
Vincent Cloarec
d45790e05b
Other export mesh algorithms (#39783)
[processing] adds there new export mesh layer to vector layer algorithms :
- export faces
- export edges (1D mesh)
- export on grid
2020-11-04 06:57:30 +01:00
Vincent Cloarec
1fbba79a0f
Mesh export processes, first part : infrastructure and export vertices (#39664)
[processing] Infrastructure for QgsMeshLayer to add processing algorithms, dataset group paramater and dataset time parameter to allow the user to easily choose a dataset.
2020-11-03 06:05:28 +01:00
Alexander Bruy
ee241edb87 completely hide parameter type definition from SIP 2020-11-02 09:50:05 +02:00
Alexander Bruy
5a155f7c23 make QgsProcessingParameterDxfLayers public 2020-11-02 09:49:05 +02:00
Alexander Bruy
6f10e65120 accept layer list and individual layers as dxf inputs 2020-11-02 09:47:29 +02:00
Alexander Bruy
b7997e0fd8 [processing] new parameter for DXF export input layers 2020-11-02 09:47:29 +02:00
Alexander Bruy
2f9236b254 remove from SIP some parameter type definitions 2020-11-02 07:49:04 +10:00
Alexander Bruy
5271ca26f5 make QgsProcessingParameterVectorTileWriterLayers public
hide parameter types definitions for TIN and vector tile parameters from
SIPP
2020-11-02 07:49:04 +10:00
Nyall Dawson
4ee9feb56b Sipify 2020-10-09 11:20:09 +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
Alexandre Neto
279c499bb1 Fix QgsProcessingParameterNumber docstring example
(cherry picked from commit 66011b22ce181c93aebeda1f0c320f254a67ca30)
2020-09-25 10:58:12 +10:00
Nyall Dawson
ed6e9ac84c Dox++ 2020-09-21 11:05:34 +10:00
Etienne Trimaille
6076950c68 Add help string for parameters in Processing 2020-09-21 11:05:34 +10:00
David Marteau
518e48c12f Fix python serialization for geometry processing parameter
Fix regexp for referenced geometry parsing
    Fix suggested doc strings
2020-09-15 07:39:10 +10:00
David Marteau
6262965df9 Register meta type for geometry processing parameter
Fix QgsProcessingParameterGeometry argument list
2020-09-15 07:39:10 +10:00
David Marteau
aa0a8ab628 Add geometry filter for processing geometry parameter 2020-09-15 07:39:10 +10:00
David Marteau
f2b8e6970b Support point and rectangle as geometry parameter values 2020-09-15 07:39:10 +10:00
David Marteau
4eb931e890 Add geometry processing parameter 2020-09-15 07:39:10 +10:00
vcloarec
5ffc4f298a some fixes and add tests 2020-09-10 14:03:11 -04:00
vcloarec
07714f3931 port alg to c++
and minor fixes
2020-09-10 14:03:11 -04:00
Nyall Dawson
b9f1f2ca32 [processing] Fix destination layer name ignored in Load Layer into Project
algorithm

Fixes #38046
2020-07-31 16:03:16 +10:00
Nyall Dawson
d57a638ec4 Add a processing algorithm flag to indicate that an algorithm requires
a valid project to be set in the context in order to execute

And flag a bunch of algorithms which require this
2020-07-30 08:26:40 +10:00
Nyall Dawson
937a41a656 [processing] Add a flag for algorithms to indicate that they should
not be available from the standalone qgis_process tool (e.g. "select by "
algorithms, which have no meaning outside of a GUI application)

These algorithms are hidden from the algorithm list for qgis_process
and cannot be run by the tool
2020-07-30 08:26:40 +10:00
Nyall Dawson
03854a41b0 Add explicit settings for ellipsoid, distance and area units to QgsProcessingContext
to avoid having to always retrieve these via the context's project (which may
not be available in some circumstances)

Refs #37988
2020-07-30 08:26:40 +10:00
nirvn
8c61a803fc [FEATURE][processing] Add a save features to file algorithm 2020-07-22 19:11:50 +07:00
Nyall Dawson
398b55ec67 Use correct layer comparators when comparing layer sources in processing
Fixes #37394
2020-07-06 13:59:21 +10:00
Denis Rouzaud
0cb8408425
more flags warnings fixes for Qt 5.15 (#37309)
* more flags warnings fixes for Qt 5.15

* fix sip compilation
2020-06-19 12:02:00 +02:00
Denis Rouzaud
044a05d828 run sipify 2020-06-19 08:47:23 +10:00
Nyall Dawson
81a9db9f57 [sipify] Fix creation of cross references 2020-06-15 13:43:58 +10:00
Nyall Dawson
e81af2c9e1 [processing] Add metadata setting for file destination parameters
to avoid file overwrite confirmation prompt

Fixes #37011
2020-06-09 04:02:32 +10:00
Nyall Dawson
4fdfa949cf [processing] Start porting Aggregates parameters to C++
Port parameter type to c++
2020-06-03 15:17:56 +10:00
Nyall Dawson
c77436d71e Dox 2020-06-02 08:43:54 +10:00
Nyall Dawson
dbe9aa0902 [processing] Port Refactor Fields to c++
Having this core algorithm in Python has proved just too unreliable

Refs #36706, refs #36843
2020-06-02 08:43:54 +10:00
Nyall Dawson
191e362ed4 Move FieldMapper parameter type to c++
Fixes sip "forgeting" about Python overrides for the type definition

Refs #36706
2020-06-02 08:43:54 +10:00
Nyall Dawson
95387cfa3b Add map support to QgsProcessingUtils::variantToPythonLiteral 2020-06-02 08:43:54 +10:00
Martin Dobias
ab2ec699e9 Clean up doxygen doc so that types are not mistaken as html tags 2020-05-08 12:55:08 +02:00
Martin Dobias
299be94459 Review fixes 2020-05-08 12:55:08 +02:00
Mathieu Pellerin
5843fc4e34 Follow up commit ff2b2e8 : safer approach + test case 2020-04-27 06:28:47 +10:00
Nyall Dawson
6a1a2e9af0 [processing] Fix handling of vrt, SAGA tif output file names
Fixes #35755, fixes #35770
2020-04-17 16:18:09 +10:00
Nyall Dawson
3b3c7d8012 Hookup model logic for correct skipping of branches which shouldn't be run 2020-04-16 16:02:53 +10:00
Nyall Dawson
6a1b10686b [FEATURE][processing] New modeler algorithm for conditional branches in models
This algorithm allows useres to setup multiple conditions (via qgis expressions),
which cause their corresponding branch of the model to be run or skipped
depending on the result of the expression evaluation.

Sponsored by Andreas Neumann
2020-04-16 16:02:53 +10:00
Nyall Dawson
e3955df564 Add method to model API to get available dependencies for a child algorithm 2020-04-16 16:02:53 +10:00
Nyall Dawson
b2167594fe Make handling of processing child algorithm dependencies more flexible
Instead of just using child ID strings, use a new dedicated class to
store dependency information
2020-04-16 16:02:53 +10:00