Re: [Qgis-user] How do I pass parameters to grass7 algorithms with Processing.run?

2018-05-28 Thread Stephen
Hi Nyall, sorry, I've made it past this error -- did you see this post? http://lists.osgeo.org/pipermail/qgis-user/2018-May/042461.html On 28.05.2018 07:07, Nyall Dawson wrote: > On 14 May 2018 at 19:30, Stephen wrote: >> >> Automatically setting output paths to temporary

Re: [Qgis-user] How do I pass parameters to grass7 algorithms with Processing.run?

2018-05-27 Thread Nyall Dawson
On 14 May 2018 at 19:30, Stephen wrote: > > Automatically setting output paths to temporary files would be a > sensible convenience, I think. > > In any event, I used processing.tools.system.getTempFilename() to set a > filename and that gets me past the 'Incorrect parameter

Re: [Qgis-user] How do I pass parameters to grass7 algorithms with Processing.run?

2018-05-25 Thread Stephen
Hi Nyall, everyone, I built 3.1 master d5ffc5a2d9, and now I'm getting failures in parts of my code that previously worked, plus no error messages. If I walk through the code, exceptions get raised silently. Do I need to turn on debugging somewhere? Here's an example of what I see in the

Re: [Qgis-user] How do I pass parameters to grass7 algorithms with Processing.run?

2018-05-15 Thread Stephen
On 14.05.2018 11:51, Nyall Dawson wrote: > On 14 May 2018 at 19:30, Stephen wrote: > >> Without a useful error message, it's very difficult to troubleshoot this >> on my own. > > Is this on master? The error messages have been greatly improved for > 3.2, so I'd be

Re: [Qgis-user] How do I pass parameters to grass7 algorithms with Processing.run?

2018-05-14 Thread Nyall Dawson
On 14 May 2018 at 19:30, Stephen wrote: > Without a useful error message, it's very difficult to troubleshoot this > on my own. Is this on master? The error messages have been greatly improved for 3.2, so I'd be interested to see what results you get there. Nyall

Re: [Qgis-user] How do I pass parameters to grass7 algorithms with Processing.run?

2018-05-14 Thread Stephen
Hi Nyall, I'm revisiting this problem now after a month. Thanks for your help on this. On 11.04.2018 02:03, Nyall Dawson wrote: >> After correcting the statement to the following: >> >>> file_grid_r = QgsRasterLayer() >>> processing.run("grass7:v.to.rast", {'input': grid_v, 'type': 0, 'use': 1,

Re: [Qgis-user] How do I pass parameters to grass7 algorithms with Processing.run?

2018-04-10 Thread Nyall Dawson
On 10 April 2018 at 20:25, Stephen Bosch wrote: > Hi Nyall: > > On Tue, Apr 10, 2018 at 2:20 AM, Nyall Dawson > wrote: >> >> On 10 April 2018 at 01:03, Stephen Bosch wrote: >> >> > I've tried calling the algorithm this way: >> >

Re: [Qgis-user] How do I pass parameters to grass7 algorithms with Processing.run?

2018-04-10 Thread Stephen Bosch
Hi Nyall: On Tue, Apr 10, 2018 at 2:20 AM, Nyall Dawson wrote: > On 10 April 2018 at 01:03, Stephen Bosch wrote: > > > I've tried calling the algorithm this way: > > > >> file_grid_r = processing.run("grass7:v.to.rast", {'INPUT': grid_v, > 'type': >

Re: [Qgis-user] How do I pass parameters to grass7 algorithms with Processing.run?

2018-04-09 Thread Nyall Dawson
On 10 April 2018 at 01:03, Stephen Bosch wrote: > The input types are described with terms like > ""; what does this mean exactly? Do I > need to pass class instances? Nope, strings/ints/layer refs/etc are fine. The class is shown in the help to indicate what values are