<div dir="ltr"><br><br>On Sun, Mar 17, 2019 at 6:31 PM Saber Razmjooei <<a href="mailto:saber.razmjooei@lutraconsulting.co.uk">saber.razmjooei@lutraconsulting.co.uk</a>> wrote:<br>><br>> You might need to run VACUUM from gdal tools:<br>><br>> ogrinfo -sql "VACUUM" pal.gpkg     <br><div><br></div><div>VACUUM might help a bit, but GeoPackage file sizes are indeed confusing. In my experience, compressing GeoPackage files can usually reduce file size substantially.</div><div><br></div><div>Markus M<br></div><div>></div>> Regards<br>> Saber<br>><br>> On Sun, 17 Mar 2019 at 17:16, Ken Mankoff <<a href="mailto:mankoff@gmail.com">mankoff@gmail.com</a>> wrote:<br>>><br>>><br>>> On 2019-03-17 at 10:03 -0700, Ken Mankoff <<a href="mailto:mankoff@gmail.com">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">grass-user@lists.osgeo.org</a><br>>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br>><br>><br>><br>> --<br>> Saber Razmjooei<br>> <a href="http://www.lutraconsulting.co.uk">www.lutraconsulting.co.uk</a><br>> +44 (0)7568 129733<br>> _______________________________________________<br>> grass-user mailing list<br>> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a></div>