[Qgis-user] File based Geopackage bugs

Alexandre Neto senhor.neto at gmail.com
Tue Feb 2 02:49:30 PST 2021


Hello Patrick,

Yes, there are (were?) some glitches while working with geopackages. But a
lot of fixes and improvements have been made in recent releases.

I remember a thread in a mailing list about the fid annoyances, but I am
not sure what was the decision.

Regarding geopackage vs spatialite: remember that they are different
beasts. Both are independent implementations on top o SQLite. Maybe a
better route would have been to make spatialite a standard, instead of
creating something new, but...

What version of QGIS are you using?
3.10.?

Can you give it a try in more recent versions or in the nightly builds
(current in development) to see if it helps

Best regards,

Alexandre Neto

A terça, 2/02/2021, 02:13, Patrick Dunford <enzedrailmaps at gmail.com>
escreveu:

> I recall going back someway we were sold this Geopackage idea being
> implemented into Qgis because it was going to be so much better than
> shape files that everyone has been using up to now. I bought into these
> ideas by converting shape files in most of my Qgis projects into
> Geopackage files.
>
> However there appear to be some serious bugs in Qgis' implementation of
> Geopackages as a file based system, and since SQlite has an impeccable
> reputation, it is a reasonable conclusion that there must be significant
> uncorrected bugs in the Qgis code that deals with file based Geopackages.
>
> Here are two examples:
>
> 1. Changing the data table associated with a layer, specifically the
> operation of deleting columns, is almost 100% guaranteed to result in
> automatic deletion of 100% of the features in the layer when the layer
> is saved. I have seen this happen multiple times, whether in a layer
> with 92 features or one with half a million.
>
> 2. Compared to shapefiles, Geopackages add an extra field called a fid
> which is a unique numerical value. For new records, this value is
> automatically generated. This requirement of uniqueness and the field
> apparently being unchangeable by the end user makes it impossible to
> paste features from another table if the values in the fid field for
> pasted features happen to coincide with existing entries in the table.
>
> These two examples are making me consider changing back to shapefiles in
> all my projects because shapefiles did not cause either of these two
> problems. Supposedly a shapefile is more prone to data corruption. This
> may be the case but as the code in Qgis that deals with shapefiles
> appears to be considerably more mature, these considerations have to be
> reasonably weighed against each other.
>
> Particularly in the case of issue 1, this appears to be a regression
> since I do not recall it being an issue on Qgis 2.18 or possibly earlier
> versions of Qgis 3. (I use the LTS edition of Qgis)
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210202/5cfe981c/attachment.html>


More information about the Qgis-user mailing list