[Qgis-developer] processing.runalg() issue with grass algorithms

Eric Goddard egoddard1010 at gmail.com
Sat Mar 22 15:06:21 PDT 2014


Ah, I didn't know a file could he specified without a path. Thanks for the
clarification!
On Mar 22, 2014 4:37 PM, "Victor Olaya" <volayaf at gmail.com> wrote:

> > If I run the same line in the python console, it works correctly:
> >>>> radius = 4
> >>>> lpf = processing.runalg("saga:simplefilter", "SR_50M_alaska_nad", 0,
> 0, radius, None)
> >>>> processing.load(lpf['RESULT'])
> >
> > Results in the map being loaded.
>
> Not sure why this is happening. I will try to reproduce the error and
> see if it can be fixed
> Thanks for the report
>
> >
> > Also, if I change the output folder in the processing settings to a
> > different location (in this case, tmp/processing in my home folder)
> > and run another algorithm in the python console, the RESULT key still
> > points to /tmp/processing/...
>
> This is not a bug. If you do not enter a filename, the output will
> always go to a temporary file. The output folder that yu can set in
> the settings  is the folder to be used when you enter a filename
> without a path (like "myfile.shp", but not "/home/myuser/myfile.shp"),
> not the folder to use for temporary files.
>
> Thanks again!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140322/cb68eaf8/attachment.html>


More information about the Qgis-developer mailing list