I am writing a QGis plugin, for QGis 2.10, which imports processing 2.10.3, that needs:
testproc = processing.runalg('gdalogr:warpreproject', thisName, # input thisCRS, # source crs thisNewCRS, # dest srs '0', # no data, <parameterString> 0, # target resolution: 0=unchanged 0, # method: 0, as we are only clipping 0, # output raster type 2, # compression None, # jpeg compression None, # zlevel None, # predictor None, # tiled None, # bigtiff None, # TFW extraParam, # extra thisOut)
extraParam is a string I used to clip my raster with a shapefile, using -clip option. It works for me with processing 2.10.3. I need to give this plugin to someone using processing 2.12.2. with QGis 2.12.0 (since this version of QGis requires a more recent version of the plugin). It fails: I think that the input for this command changed.
- how I can detect the version of processing (after doing import processing). I would like to adapt the behaviour to the version, as the long term release uses 2.10.3
- what changed in the new version, in term of inputs?