<p dir="ltr">The bug of initspatialmetada was resolved in dev versione of qgis.</p>
<div class="gmail_quote">Il 30/gen/2014 17:24 "kimaidou" <<a href="mailto:kimaidou@gmail.com">kimaidou@gmail.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>Hi all<br><br></div>Could you try to use this commands in QGIS python console ? I have seen that the parameter 1 in the function initspatialmetadata is very important to have a very fast DB creation. If you are on Windows, change the path "/tmp/test.db" by a more appropriate one.<br>

<br>from pyspatialite import dbapi2 as db<br>conn=db.connect('/tmp/test.db')<br>c=conn.cursor()<br>sql = "select initspatialmetadata(1)"<br>c.execute(sql) ; print [row for row in c]<br><br></div>Michael<br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-01-30 Stefan Keller <span dir="ltr"><<a href="mailto:sfkeller@gmail.com" target="_blank">sfkeller@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
I have to confirm that the file size is huge and saving performance is slow.<br>
I'd like to emphasize that this is a show stopper for me for/against<br>
Spatialite to become "the Shapefile of the future"!<br>
I did not yet look into the QGIS driver code, but I assume (and hope)<br>
that at least the saving performance can be enhanced.<br>
<br>
-Stefan<br>
<br>
2014/1/24 Rafael Krucker <<a href="mailto:rkrucker@hsr.ch" target="_blank">rkrucker@hsr.ch</a>>:<br>
<div><div>> Hello all<br>
><br>
> I've noticed recently (QGIS 2.0.1, Windows 7 64 bit), that, when I'm<br>
> processing a shapefile as layer, even very small ones, the operation 'save<br>
> as spatialite' takes forever. With a small shapefile (1 KB), the process of<br>
> converting takes up to 3 minutes, the generated spatiallite is then always<br>
> around 4000 bigger (4.21 MB). These ratios are the same, no matter how big<br>
> the file is, the time taken enlarges linearly it seems.<br>
> When the export is a shapefile again, the whole thing is a matter of<br>
> seconds.<br>
> Is this due to some kind of buffering issues or does this conversetion<br>
> simply take that many resources?<br>
><br>
> Kind regards and thanks in advance for any pointers<br>
> Rafael<br>
> _______________________________________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></div></blockquote></div><br></div>
<br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></div>