New answers tagged qgis-processing
Yes and you can automate this process with python grass.script or bash script (bat script in Windows). I test it in my system and the individual commands are (for my line vector named route and raster dem named utah_demUTM2): v.to.rast input=route value=1 output=route_raster r.thin input=route_raster output=route_raster_thin r.mapcalc ...
Just to add to the earlier answer... You can find the field for the path here - Processing > Options > Providers > SAGA > SAGA Folder:
I think you could use the following code to obtain source information for your layer. Select a layer from the layer window and input the code into the Python Console: layer = qgis.utils.iface.activeLayer() print layer.source() You should receive information about the layer. Hope this helps!
Processing provides example code for a new algorithm provider. It's located in the processing folder inside your home directory, e.g. on my machine: C:\Users\anita\.qgis2\python\plugins\processing\algs\exampleprovider Based on these example files, you can build your own plugin which can contain as many new algorithms as you want.
At the bottom of the toolbox, change from "simplified" to "advanced" interface to see the grouping into different algorithm providers (GDAL/OGR, GRASS, ...) The algorithms are all there, they are just not separated by provider if the simplified interface is activated.
it seems that my problem was in the GRASS algorithm I was using. Now, I've moved to GDAL algorithm named "Grid - InverseDistance To a Power" and it works. I don't really know what was wrong: my only suspect is that after running grass algorithm I would need to "convert" the grass raster map created to a "readble" raster, to be loaded in QGis correctly. I ...
If you want to put the python script in a folder which already exists you can open the python console in qgis and type import sys sys.path You can choose any of the directories that are listed.
The script can be placed in any paths that the environment variable PYTHONPATH has. If some of the default locations don't suit your need, then you can make changes to PYTHONPATH as needed. In QGIS, you can append or prepend the PYTHONPATH variable. Check out the System tab in the Settings > Options window. Place a check beside Use custom variables ...
You can use gdal/ogr tool inside your modelbuilder : hope that helps
While running running SAGA 2.2.0 in QGIS 2.0 installed on UBUNTU 14.04 error i got is "Missing dependency.This algorithm cannot be run" . As still i have installed SAGA and checked through console by running saga_cmd. The issue was resolved using following Go to Processing->Options and Configuration Click on Providers->SAGA Uncheck "Enable SAGA 2.0.8 ...
Try with processing.tools.vector instead of processing.core.VectorWriter.
Top 50 recent answers are included