[Qgis-developer] Add Layers to spatialite database
Luis Miguel Royo Perez
luis.miguel.royo at gmail.com
Mon Jun 20 09:26:02 PDT 2016
Hi everyone,
I would like to add layers into a spatialite database. I have use the
QgsVectorFileWriter method
parcDisSHP='/xxx/xxx/xxx/xxx/FILE.shp'
parcelasDis = QgsVectorLayer(parcDisSHP, 'Parcelas_Unicas', "ogr")
/QgsVectorFileWriter.writeAsVectorFormat(parcelasDis,
"/xxx/xxx/xxx/xxx/database.sqlite", "utf-8", None, "SQLite", False, None
,["SPATIALITE=YES"])
/But this method it seems good for create the database and insert just
one layer. If I repeat the operation for other layers, this rewrite the
Database again.
What should I do to add more layers to this DB?/
/Is there some others ways to do this operation?/
/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160620/e0f72c4f/attachment.html>
More information about the Qgis-developer
mailing list