<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi everyone,<br>
<br>
I would like to add layers into a spatialite database. I have use
the QgsVectorFileWriter method<br>
<br>
parcDisSHP='/xxx/xxx/xxx/xxx/FILE.shp'<br>
parcelasDis = QgsVectorLayer(parcDisSHP, 'Parcelas_Unicas', "ogr")<br>
<br>
<i>QgsVectorFileWriter.writeAsVectorFormat(parcelasDis,
"/xxx/xxx/xxx/xxx/database.sqlite", "utf-8", None, "SQLite",
False, None ,["SPATIALITE=YES"])<br>
<br>
</i>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. <br>
<br>
What should I do to add more layers to this DB?<i><br>
<br>
</i>Is there some others ways to do this operation?<i><br>
</i>
</body>
</html>