I am trying to write a plugin in QGIS that uses at some point a GRASS algorithm : "v.split.length", accessible by using the processing class, and here is how I am using it :
processing.runalg("grass:v.split.length",layerToSplit,30.0, None, -1,None, 0, None)
Here is a short reminder on the parameters :
input <ParameterVector> length <ParameterNumber> GRASS_REGION_PARAMETER <ParameterExtent> GRASS_SNAP_TOLERANCE_PARAMETER <ParameterNumber> GRASS_MIN_AREA_PARAMETER <ParameterNumber> GRASS_OUTPUT_TYPE_PARAMETER <ParameterSelection> output <OutputVector> GRASS_OUTPUT_TYPE_PARAMETER(v.out.ogr output type) 0 - auto 1 - point 2 - line 3 - area
The problem is that when I launch this, it seems to work (there is a short delay showing that the algorithm is working) but when I open the output folder (which, in this case, is a temporary one), it is empty... (i tried saving the output in my folders, the same problem occurs)
I am not sure where my error comes from ... I tried changing the values of some of the parameters (Region, snap tolerance, min area) but nothing worked.
I found this when searching a solution, but in the end the person who faced the problem wasn't sure theirselves of what was the problem.