[Qgis-user] Compressing rasters in geopackage?

Nicolas Cadieux njacadieux.gitlab at gmail.com
Wed Apr 7 18:59:41 PDT 2021


Hi,
This is from an earlier email exchange. It may help.  Look for « Geopackage file data loss issue » in the mailing list.

> The answer is there:
> https://gdal.org/drivers/raster/gpkg.html#tile-formats
> 
> For Byte input (that isn't recognized as to be used by the tiled
> gridded coverage data), the default tile format will use JPEG lossy
> compression for tiles with a fully opaque channel.
> 
> -co TILE_FORMAT=PNG will use lossless compression
> 
> GeoPackage raster aim was initially for visualisation purposes, hence
> this default. The more analytic side was a later addition to the
> format, and actually an extension
> 
> Even

Nicolas Cadieux
https://gitlab.com/njacadieux

> Le 6 avr. 2021 à 20:18, David Strip <qgis-user at stripfamily.net> a écrit :
>  Are raster layers saved to geopackage compressed? I have a geopackage with two raster layers in it and they appear to be uncompressed. Both layers are about 11K x 14. One is byte, the other is float32 and the geopackage is around 500M, consistent with no compression. 
> I tried doing an "export" of the layer to a geopackage (as opposed to dragging it into the geopackage in the file browser pane), but the only available profile under Create Options is "default". Do I need to type compression options explicitly?
> 
> Thanks
> David _______________________________________________
> 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/20210407/77c34801/attachment.html>


More information about the Qgis-user mailing list