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

On 10/28/2015 03:09 PM, Denis Rouzaud wrote:
> Hi all,
>
> I would like to use ogr2ogr in a plugin, and I wonder if it's possible
> to call the one that has been installed along QGIS, independently from
> the OS.
>
> The idea is to connect to a Postgres DB and writes content of tables
> into shapefiles. One way would be to load the tables in QGIS and write
> content manually, but a single ogr2ogr would be quite straightforward.
>
> Thanks a lot for any lead,
>
> Denis
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to