[Qgis-developer] use ogr2ogr in a plugin

Denis Rouzaud denis.rouzaud at gmail.com
Thu Oct 29 00:21:40 PDT 2015

Hi Roberto,

On 10/28/2015 05:58 PM, geodrinx at gmail.com wrote:
> Hi Denis,
>> 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.
> You need to write a SHP directly ?  Do you need something like a batch, for mass production purposes ?

Yes, I need to write the SHP directly, I'm not much intersted to load
this in QGIS.
QGIS is used to define the bounding box and to offer the UI for this
batch processing. The idea of using QGIS is that it will not depend on
something installed either on the server or the desktop computer.

> Why don't you use simply the standard Qgis postgis connection ?
> You can "add" a PostGIS connection and open a table. 
> It is not sufficient, this ?
> Explain it better. 
> A presto
> Roberto
>> Thanks a lot for any lead,
>> Denis
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer

More information about the Qgis-developer mailing list