gdalogr-Processing in QGIS 3.0

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

gdalogr-Processing in QGIS 3.0

Mike (EZUSoft)

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
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

gdalogr-Processing in QGIS 3.0

Mike (EZUSoft)
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
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: gdalogr-Processing in QGIS 3.0

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

Greatings Mike

> DelazJ <[hidden email]> 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 <[hidden email]>:
>
> > 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
> >  [hidden email]
> >  List info: [https://lists.osgeo.org/mailman/listinfo/qgis-developer](https://lists.osgeo.org/mailman/listinfo/qgis-developer)
> >  Unsubscribe: [https://lists.osgeo.org/mailman/listinfo/qgis-developer](https://lists.osgeo.org/mailman/listinfo/qgis-developer)
_______________________________________________
Qgis-developer mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: [Qgis-developer] gdalogr-Processing in QGIS 3.0

Mike (EZUSoft)

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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]>:

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
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


_______________________________________________
QGIS-Developer mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: [Qgis-developer] gdalogr-Processing in QGIS 3.0

Nyall Dawson
On 7 July 2017 at 16:09, EZUSoft <[hidden email]> wrote:
> 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'

This is all in a state of flux. In QGIS 3.0 you would do something like:

processing.run( 'gdal:convertformat', {'INPUT':"d:/test/mydxf.dxf",
... , 'OUTPUT':'d:/test/myshp.shp'} )

i.e. you know use a dict for specifying the options.

But gdal algorithms are not available yet - only a handful of qgis ones.

Nyall



>
> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]>:
>
> 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
> [hidden email]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
> _______________________________________________
> QGIS-Developer mailing list
> [hidden email]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________
QGIS-Developer mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|

Re: [Qgis-developer] gdalogr-Processing in QGIS 3.0

Mike (EZUSoft)
Hi,
thank you for the fast answer.
It makes then current no sense  to develop my plugins further.
Greatings Mike


> Nyall Dawson <[hidden email]> hat am 7. Juli 2017 um 08:14 geschrieben:
> This is all in a state of flux. In QGIS 3.0 you would do something like:
>
> processing.run( 'gdal:convertformat', {'INPUT':"d:/test/mydxf.dxf",
> ... , 'OUTPUT':'d:/test/myshp.shp'} )
>
> i.e. you know use a dict for specifying the options.
>
> But gdal algorithms are not available yet - only a handful of qgis ones.
>
> Nyall
>
> >
>
> > 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]>:
> >
> > 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
> > [hidden email]
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> >
> > _______________________________________________
> > QGIS-Developer mailing list
> > [hidden email]
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________
QGIS-Developer mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer