Converts any OGR-supported vector layer into another OGR-supported format. This algorithm is derived from the ogr2ogr utility .
Defines the destination format. By default this is ESRI Shapefile.
Options:
Default: 0
Optional.
<put parameter description here>
Default: (not set)
processing.runalg('gdalogr:convertformat', input_layer, format, options, output_layer)