[Qgis-developer] use ogr2ogr in a plugin
matthias at opengis.ch
Thu Oct 29 01:18:18 PDT 2015
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.
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,
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: OpenPGP digital signature
More information about the Qgis-developer