I would like to know how to get processing algorithms in general, and warp (reproject) specifically, to run with default values. I am running a script in the QGIS Python console. In the QGIS 2.14 documentation it is stated that:
"Input parameters such as strings, booleans, or numerical values have default values. To use them, specify None in the corresponding parameter entry."
However, when I run the following code, I receive an error.
processing.runalg("gdalogr:warpreproject",
path+"land_use.tif", #input
"ESPG:3035", #source crs
"ESPG:4326", #destination crs
"0", #no data value
0, #target resolution: 0=unchanged
0, # method: 0=near
5, # output raster type: 5=Float32
0, #compression: 0=none
None, #jpeg compression: default
None, #zlevel: default
None, #predictor: default
None, #tiled: default
2, #bigtiff: 2=no
None, #TFW: default
None, #extra: default
path+"land_use_reprojected.tif")
The error is simply
Error: Wrong parameter value: None
I feel like QGIS is throwing an error instead of referring to default values, have I misunderstood the documentation?
I also find that the error message is uninformative.