<!DOCTYPE html><html><head>
<style type="text/css">body { font-family:'DejaVu Sans Mono'; font-size:12px}</style>
</head>
<body>Am 12.11.2015, 16:17 Uhr, schrieb Paulo van Breugel <p.vanbreugel@gmail.com>:<br><br><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 12, 2015 at 3:48 PM, Neumann, Andreas <span dir="ltr"><<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>I believe the main difference between SpatiaLite and Geopackage is that a SpatiaLite database contains a lot of query functionality and additional data (e.g. a big list of CRS) - while Geopackage does not</p></div></blockquote><div>That would be a very big list of CRS, or does the query functionality 
take that much space? I often used spatialite, but given that I normally
 use it to store many layers, I had actually never noticed the large 
initial size. This is imho indeed a clear disadvantage when used for 
data sharing. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>When you checked filesizes for shp: did you only look at the shp, or also include dbf, shx, prj, etc.? Otherwise you comparing a complete dataset with attributes and metadata against just geometry.</p></div></blockquote><div><br></div><div>All files, not only the *.shp file. I just created a simple vector layer in QGIS and saved it as shapefile, geopackage and spatialite file. </div></div></div></div></blockquote><div><br></div><div>Seems I'm a bit confused by the differences between spatialite and sqlite.</div><div><br></div><div>A spatialite db is always 4 MB + x which makes a huge difference for small layers, but I guess the differences become closer when having "normal" sized layers.</div><div><br></div><div>What is irritating me is, when I use a small layer and perform some processing function and then save it as .sqlite to a file, the result is only a few kb and not 4 MB.</div><div><br></div><div>So, having sqlite as default temporary output in processing would not make any difference to ESRI shape sizewise!</div><div><br></div><div>Example: a shapefile point layer with quite some attributes and 999 features has 4.4 MB </div><div>saving this as spatialiate: 4.6 MB</div><div>saving as sqlite: 86 kB !</div><div><br></div><div>The sqlite file is 5 times smaller than the ESRI shape file while the spatialite file is about the same as the shape.</div><div><br></div><div>Here on 2.8.3 at the office I have no geopackage option to test with.</div><div><br></div><div>So, whats the difference between sqlite and spatialite in detail?</div><div><br></div><div>Cheers</div><div>Bernd</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif"><span class=""><font color="#888888">
<p>Andreas</p></font></span><div><div class="h5">
<p>On 2015-11-12 15:36, Paulo van Breugel wrote:</p>
</div></div><blockquote type="cite" style="padding:0px 0.4em;border-left:2px solid rgb(16,16,255);margin:0px"><div><div class="h5">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Nov 12, 2015 at 1:30 PM, Matthias Kuhn <span><<a href="mailto:matthias@opengis.ch" target="_blank">matthias@opengis.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The main issues with spatialite are IMO: It's based on sqlite so<br> deleting columns and renaming columns is not supported by design. We<br> could offer some hacks to bypass this (annoying restriction) from the UI<br> - there is a risk of side effects though. Another property of it is,<br> that it's already 4-5MB big, even when empty. I consider this a major<br> limiting factor as well. Other issues which we were not yet able to<br> solve are its management of the information scheme which keep duplicate<br> entries of tables and columns which need to be properly updated which we<br> apparently do not manage (yet).<br><br> Geopackage is also based on sqlite, so the column delete/rename<br> restrictions apply as well (with the same workaround possibilities). I<br> haven't checked the file size, but if that's smaller, that would be<br> quite nice (does somebody know?).</blockquote>
<div> </div>
<div> </div>
<div>Just checked saving a shapefile of 941 bytes as Spatialite and Geopackage file. The first is indeed 4.4MB. The Geopackage is 12.3kB, i.e., larger then the shapefile, but the increase is small compared to the spatialite file. I am not familiar with the differences, but this makes the Geopackage a better candidate imho.<br><br></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br> All the best<br><span><span style="color:rgb(136,136,136)">Matthias<br></span></span></blockquote>
</div>
</div>
</div>
<br>
</div></div><span class=""><div style="margin:0px;padding:0px;font-family:monospace">_______________________________________________<br> Qgis-user mailing list<br><a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
</span></blockquote>
<p> </p>
<div> </div>
</div>
</blockquote></div><br></div></div>
</blockquote><br><br><br><div id="M2Signature"><div>-- </div><div>Erstellt mit Operas E-Mail-Modul: <a href="http://www.opera.com/mail/">http://www.opera.com/mail/</a></div></div></body></html>