[Qgis-developer] use ogr2ogr in a plugin

Victor Olaya volayaf at gmail.com
Thu Oct 29 01:38:38 PDT 2015


2015-10-29 9:18 GMT+01:00 Matthias Kuhn <matthias at opengis.ch>:
> Hi Denis,
>
> I assume the path env variable should be appropriately set in all OS'es
> when inside QGIS so calling ogr2ogr (e.g. subprocess.call( 'ogr2ogr
> params' ) should just work. But to be honest, I never tried.
>
> Matthias
>

That's actually what the ogr2ogr algorithm in Processing does...

https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/gdal/ogr2ogr.py


More information about the Qgis-developer mailing list