33 Commits

Author SHA1 Message Date
Even Rouault
5665665712 Fix CMake 3.31 warnings 2024-12-04 06:50:16 +10:00
Denis Rouzaud
0f032e5f2d run pre-commit on all files 2024-11-29 15:38:02 +01:00
Nyall Dawson
9e25dd9aaf Fix type hints 2024-08-17 19:59:17 +10:00
Nyall Dawson
bad8ad7a8e Fix bad styling 2024-08-17 19:59:17 +10:00
Nyall Dawson
626df694fa Avoid multiple doc strings copies, add comments 2024-08-17 19:59:17 +10:00
Nyall Dawson
532129abf7 Improve processing monkey patching
"forward declare" functions which will be patched when the processing
plugin starts, so that these are known and accessible during the PyQGIS
doc building. Also make these forward declared versions raise
QgsNotSupportedException, so that its clear why they aren't working
when the processing plugin hasn't started

Fixes https://github.com/qgis/pyqgis-api-docs-builder/issues/38
2024-08-17 19:59:17 +10:00
Jean Felder
f1d050c528 algfactory: Add support for pure date and time decorators
The existing `alg.DATETIME` decorator only allows to define a
`QgsProcessingParameterDateTime` as a datetime.
This change allows to also define a `QgsProcessingParameterDateTime`
as a pure date or time by adding `alg.DATE` and `alg.TIME`.
2024-02-29 07:33:12 +10:00
Nyall Dawson
c16a1e2b3d Update enums 2024-01-19 19:44:48 +10:00
Harrissou Sant-anna
8f296b1c61
Replace POINT_CLOUD_LAYER with POINTCLOUD_LAYER in docstring 2022-06-01 13:53:06 +02:00
Alexander Bruy
9cbe0ddaac address review 2021-11-26 15:37:27 +10:00
Alexander Bruy
b09d2fa0c7 fix tests 2021-11-26 15:37:27 +10:00
Alexander Bruy
5759fbce7b add point cloud output and destination to algfactory 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
aef9ef7ee0 add point cloud parameter to algfactory 2021-08-05 21:07:31 +03:00
nirvn
6b993f6b98 [FEATURE][processing] Brand new duration parameter 2021-07-27 13:46:09 +07:00
Denis Rouzaud
da08c8a435
[cmake] generalize Python output directory in UseTest macro (#43191)
* [cmake] generalize Python output directory in UseTest macro

this is helpful in case we set up another python output directory (eg PySide2)

* define python output directories to the parent scope

* try with target_include_directories

* define vars on top level

* Update UsePythonTest.cmake

* some cleanup

* more cleanup

* fix uic

* fix path for all platforms

* fix var
2021-05-13 07:32:03 +02:00
Denis Rouzaud
555f516925
use cmake native FindPython (#42497) 2021-03-28 21:49:40 +02:00
rldhont
0b281073b7
[Bugfix] Processing @alg decorator support input help string (#40207) 2020-12-15 11:34:24 +10:00
Denis Rouzaud
eddf6feb45 modernize CMakeLists.txt files 2020-11-12 07:14:46 +10:00
David Marteau
4eb931e890 Add geometry processing parameter 2020-09-15 07:39:10 +10:00
Nyall Dawson
62112ac911 [processing] Add missing parameter types to alg wrapper 2020-03-16 10:08:25 +10:00
Nyall Dawson
0efc6f531c [FEATURE][processing] New parameter type for datetime (or date, or time) values
Adds a new parameter type QgsProcessingParameterDateTime for handling
date/datetime/time values
2020-02-24 17:23:41 +10:00
David Marteau
87e3516f2f Fix default defaultValue in algfactory
According to doc: https://qgis.org/pyqgis/3.10/core/QgsProcessingParameterDefinition.html?highlight=qgsprocessingparameterdefinition#module-QgsProcessingParameterDefinition
2019-11-15 02:53:25 +10:00
Alexander Bruy
f9737a9d5f [processing] add default icon for scripts created using decorator (fix #31252) 2019-09-20 06:37:31 +10:00
Nyall Dawson
6a4ec5b704 [processing][needs-docs] Add missing input and output types to decorator syntax 2019-08-07 07:26:54 +10:00
Bas Couwenberg
2628c480c5 Don't include revision in sources.
Prevent changes to files that weren't changed between releases.
This eases review of the changes between releases significantly.
2019-05-17 16:47:47 +02:00
Nyall Dawson
bf7d9cb6f8 Don't use copyright license as a module docstring 2019-03-28 11:47:23 +10:00
Håvard Tveite
1205fbfa71 [processing] Add missing RasterLayer input parameter 2019-03-18 07:51:15 +10:00
volaya
f76be664fe [processing] Script decorators: correctly check that parent parameter exist 2019-02-26 08:31:11 +10:00
Víctor Olaya
29b952d90c [processing] consider destination params as outputs when defining scripts 2019-02-26 06:56:28 +10:00
Peter Petrik
e71660215c [processing] add QgsProcessingParameterMeshLayer parameter 2018-12-17 11:50:53 +01:00
Nyall Dawson
11ea28a5b3 [FEATURE][processing] Add a new parameter type for authentication config
This adds a new available parameter type for processing algorithms,
QgsProcessingParameterAuthConfig, allowing selection from available
authentication configurations (and creation of new ones).

It allows creation of processing algorithm which can fully take
advantage of QGIS' mature authentication handling, avoiding the
need to use insecure string parameters for users to input
sensitive logon credentials.

QgsProcessingParameterAuthConfig parameters are evaluated using
QgsProcessingAlgorithm.parameterAsString(), which returns the
selected authentication configuration ID.
2018-12-15 08:23:10 +10:00
Nathan Woodrow
87d2da13fb
[FEATURE][needs-docs] Add new @alg decorator for nicer python processing scripts. (#8586)
@alg()
@alg.help()
@alg.input()
@alg.output()
2018-12-10 16:35:52 +10:00