<div dir="ltr"><div dir="ltr">You might need to run VACUUM from gdal tools:</div><div dir="ltr"><br><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">ogrinfo -sql "VACUUM" pal.gpkg </span><br></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br></span></span></div><div>Regards<br></div><div>Saber</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 17 Mar 2019 at 17:16, Ken Mankoff <<a href="mailto:mankoff@gmail.com">mankoff@gmail.com</a>> wrote:<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>
On 2019-03-17 at 10:03 -0700, Ken Mankoff <<a href="mailto:mankoff@gmail.com" target="_blank">mankoff@gmail.com</a>> wrote...<br>
> After learning from Markus & Moritz I see that the GPKG files are as<br>
> they should be - vector features are not in triplicate. I think there<br>
> are some strange QGIS import issues where it imports everything 3x but<br>
> this is not a GRASS issue.<br>
<br>
Actually, I am still confused about something with the file sizes. The data/metadata all appear correct. But if I export a three-layer vector w/ three tables 1x, the GPGK file is 12 MB and contains 1 table. It is missing two tables. If I then export each of the databases associated with each of the layers, they are 0.2 MB. If export the vector 3x, once per layer, with update, as advised earlier in this thread, the resulting GPKG is ~34 MB, or ~3x as large as I would expect it to be.<br>
<br>
v.out.ogr -c input=pal output=pal_all.gpkg --o # 12 MB, but only layer1 table<br>
db.out.ogr input=pal output=l1.csv layer=1 # 7.5k<br>
db.out.ogr input=pal output=l2.csv layer=2 # 124K<br>
db.out.ogr input=pal output=l3.csv layer=3 # 85k<br>
<br>
v.out.ogr -c input=pal output_layer=tbl2_points output=pal.gpkg layer=1 --o<br>
v.out.ogr -c input=pal output_layer=tbl2_areas output=pal.gpkg layer=2 -u --o<br>
v.out.ogr -c input=pal output_layer=tbl2_lines output=pal.gpkg layer=3 -u --o<br>
# pal.gpg is 34 MB, with 3 tables.<br>
<br>
Why does adding two additional (small) tables increase the size of the resulting geopackage by 100s of times the size of the tables?<br>
<br>
-k.<br>
<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Saber Razmjooei<br></div><div><a href="http://www.lutraconsulting.co.uk" target="_blank">www.lutraconsulting.co.uk</a><br><span>+44 (0)7568 129733</span><br></div></div></div></div></div></div></div></div></div></div>