[QGIS-Developer] Appending Features to a layer
Luís Miguel Royo Pérez
luis.miguel.royo at gmail.com
Wed May 13 03:57:51 PDT 2020
Hi all,
I'm seeking a way to append features to a layer when exporting into a
PostGIS layer.
For now I'm using the tool QgsVectorLayerExporter.
I'm doing something like this
QgsVectorLayerExporter(uri, "postgres", fields, layer.wkbType(),
utils().crs, overwrite,{}).addFeatures([feat for feat in
layer.getFeatures()])
Inside the curly brackets I know I can place the options, but I can't find
where are these options documented. Or wether these options can help me in
my task of append features to a QGIS layer.
Can anyone point me in the right direction in this task of appending
features?
Kind regards.
--
Luís Miguel Royo Pérez.
Analista-Programador GIS
C/ Antic Regne de Valencia nº 4. Manises (Valencia)
Teléfono:+34 679846103
webs:
inisig.com
geofibra.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200513/a725cbbe/attachment.html>
More information about the QGIS-Developer
mailing list