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

Victor Olaya volayaf at gmail.com
Sat Mar 22 14:37:09 PDT 2014


> 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!


More information about the Qgis-developer mailing list