Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-02-05 Thread G. Allegri
Thanks Alexander, guys you're working very fast! Cool. I will do some testing asap. Giovanni Il 5 feb 2018 8:44 AM, "Alexander Bruy" ha scritto: > Starting from b6c2de48 scrips are just usuall Processing algorithms: > normal or feature-based. > Testing and feedback

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-02-04 Thread Alexander Bruy
Starting from b6c2de48 scrips are just usuall Processing algorithms: normal or feature-based. Testing and feedback are welcome. 2018-01-29 12:44 GMT+02:00 G. Allegri : > Rephrasing what I wrote before, what about dropping ScriptAlgorithm and make > ScriptAlgorithmProvider

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-29 Thread Etienne Trimaille
And when we create a new script from the toolbox, it's providing us a python template more or less like this https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/exampleprovider/ExampleAlgorithm.py ? With some comments to help script writers, it will be nice, yes. BTW, I just

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-29 Thread G. Allegri
Rephrasing what I wrote before, what about dropping ScriptAlgorithm and make ScriptAlgorithmProvider simply provide its algorithms from the special scripts folder? giovanni 2018-01-29 10:51 GMT+01:00 G. Allegri : > Hi Anita, > that's exactly what I also was thinking about.

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-29 Thread G. Allegri
Hi Anita, that's exactly what I also was thinking about. What about dropping scripts in favour of "on the fly" QgsProcessingAlgorithms? A single, unified, way of defining them, without the special parameters syntax of scripts... Giovanni 2018-01-29 9:55 GMT+01:00 Anita Graser

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-29 Thread Anita Graser
I've decided to go the algorithm provider plugin route for my scripts: https://anitagraser.com/2018/01/28/porting-processing-scripts-to-qgis3/ But I'm also thinking of my students whom I want to show how to write tools for QGIS. For many of them, it's their first contact with Python, so starting

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-27 Thread G. Allegri
I know Alexander. The point was processing scripts and their future... giovanni Il 27 gen 2018 4:29 PM, "Alexander Bruy" ha scritto: > It is possible to write algorithms using same approach as in core. Just > create > "provider plugin" and that's it. This

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-27 Thread Alexander Bruy
It is possible to write algorithms using same approach as in core. Just create "provider plugin" and that's it. This functionality was here almost from the very beginning of the Processing. 2018-01-27 17:08 GMT+02:00 G. Allegri : > Honestly I think script syntax wasn't that

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-27 Thread G. Allegri
Honestly I think script syntax wasn't that bad. At least it was quite easy for a set of power users, as I could verift during my past courses. Anyway I agree with the rationale: having a unified, pythonic way, to write both algorithms and scripts... well, might be the case to ultimately drop

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-27 Thread Paolo Cavallini
Il 27/01/2018 00:39, Nyall Dawson ha scritto: > It's not too late to improve this for 3.x. Why don't we get the daily > Python users and experts involved here and come up with a more > Python-like approach to processing scripts? IMHO this is worth a wider announcement and call for help, if

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-27 Thread Anita Graser
Thank you Nyall! On Sat, Jan 27, 2018 at 12:39 AM, Nyall Dawson wrote: > > But -- while we're at it -- am I the only one who finds processing > script files in general to be full of a lot of black magic? (Note that > I'm referring to script files here, not proper

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-26 Thread Nyall Dawson
On 27 January 2018 at 05:33, Anita Graser wrote: > > > On Tue, Jan 23, 2018 at 12:14 PM, G. Allegri wrote: >> >> Hi Nyall, >> scripts seem way more complex then before. I guess it is the simplest way >> that could be found to accomodate Processing scripts

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-26 Thread Anita Graser
On Tue, Jan 23, 2018 at 12:14 PM, G. Allegri wrote: > Hi Nyall, > scripts seem way more complex then before. I guess it is the simplest way > that could be found to accomodate Processing scripts to the refactored code. > Some questions from the previous scripts examples: > >

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-23 Thread G. Allegri
Hi Nyall, scripts seem way more complex then before. I guess it is the simplest way that could be found to accomodate Processing scripts to the refactored code. Some questions from the previous scripts examples: 1) Is automatic output / sink parameter conversion impossible to obtain? In [1]

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-23 Thread Nyall Dawson
On 23 January 2018 at 18:28, Alexander Bruy wrote: > There are some scripts in the Processing tests > https://github.com/qgis/QGIS/tree/master/python/plugins/processing/tests/testdata/scripts > There's also

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-23 Thread Alexander Bruy
There are some scripts in the Processing tests https://github.com/qgis/QGIS/tree/master/python/plugins/processing/tests/testdata/scripts 2018-01-23 10:19 GMT+02:00 Anita Graser : > On Jan 23, 2018 1:19 AM, "Nyall Dawson" wrote: >> >> On 23 January 2018

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-23 Thread Anita Graser
On Jan 23, 2018 1:19 AM, "Nyall Dawson" wrote: > On 23 January 2018 at 04:12, Anita Graser wrote: > > On Sat, Jan 20, 2018 at 12:40 PM, Anita Graser > wrote: > >> > >> Do we have any working example scripts for Processing in QGIS

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-22 Thread Nyall Dawson
On 23 January 2018 at 04:12, Anita Graser wrote: > On Sat, Jan 20, 2018 at 12:40 PM, Anita Graser wrote: >> >> Do we have any working example scripts for Processing in QGIS 3? >> I tried using "Get scripts from on-line collection" but they all seem >>

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-22 Thread Anita Graser
On Sat, Jan 20, 2018 at 12:40 PM, Anita Graser wrote: > Do we have any working example scripts for Processing in QGIS 3? > I tried using "Get scripts from on-line collection" but they all seem > broken: > https://issues.qgis.org/issues/17897 > ​Is there any documentation how