Hi @all,
with the weekly build from february this code works:
import processing
processing.runalg('gdal:convertformat',"d:/test/mydxf.dxf", 0, opt , "d:/test/myshp.shp")

Now I test the weekly build "c1d339c"  and it does not work:
Error: AttributeError: module 'processing' has no attribute 'runalg'

Unfortunately, I found in the net no example how to use the new version of the processing for (ogr) convert dxf to shape.

Greatings Mike

EZUSoft <[email protected]> hat am 27. März 2017 um 16:56 geschrieben:

Hi,
thanks for answer.
processing.runalg('gdal:convertformat' ...
This works (in the principle).

Greatings Mike

DelazJ <[email protected]> hat am 27. März 2017 um 10:41 geschrieben:

Hi,
It's because gdalogr no longer exists in 3.0, use instead gdal. You could to run processing.alglist() to get the write syntax of functions.

Regards,
Harrissou

2017-03-27 9:05 GMT+02:00 EZUSoft <[email protected]>:

Hi @all,
i can not use the "gdalogr"-Processing in QGIS 3.0 (2.99) QGIS code revision 1182816

import processing
processing.runalg('gdalogr:convertformat','', 0, '' ,'')
Error: Algorithm not found

Does anyone know whats going wrong?

Greatings Mike

_______________________________________________
Qgis-developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to