[Qgis-user] Readonly gpkg

Even Rouault even.rouault at spatialys.com
Mon Jan 31 09:26:57 PST 2022


Resolution attempt in https://github.com/qgis/QGIS/pull/47098

Even

Le 11/01/2022 à 15:10, pergler at gmail.com a écrit :
>
> I’ve packaged a number of read-only layers (e.g. contours, 
> watercourses) for my area of interest into one gpkg. However, QGIS 
> writes changes to this gpkg every time it is opened, even if the 
> layers themselves are never edited. I think this is related to SQLite 
> wal journaling.
>
> It’s an annoyance since it’s a large file that gets unnecessarily 
> reuploaded in every incremental backup, and when I’m in the field, 
> that’s sometimes over a bad 3G cell connection.
>
> I’ve tried making the gpkg read-only, which hasn’t crashed anything in 
> brief testing and generates no warnings. However, it feels risky, and 
> clearly QGIS or OGR aren’t fully happy, since the temporary shm and 
> wal files don’t get deleted on exit. So I’m hesitant to continue doing 
> this for fear of a crash when I’m actually doing something useful.
>
> Is there a better way to tell QGIS to not write to a gpkg in which all 
> layers are only being accessed read-only?
>
> Thanks!
>
> ---
>
> Martin Pergler
>
>
> _______________________________________________
> 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

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220131/b89ab2af/attachment.html>


More information about the Qgis-user mailing list