I'm trying to convert a vector layer to a raster by using the GRASS function
v.to.rast.attribute in Python.
My code doesn't throw any error but the raster image is only a square of 1px. But when I'm using it through the Modeler, everything is fine.
Surely the parameters of the function aren't correct or something like that, but I can't find out what... Any idea?
raster = sextante.runalg('grass:v.to.rast.attribute', input, 0, class_field, 0.0, 0.5, -1.0, 0.0001, None)
Note: The input is a vector layer and the class_field is the field chosen by the user.