<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><meta http-equiv="content-type" content="text/html; charset=utf-8">Hi,<div>This is from an earlier email exchange. It may help.  Look for « Geopackage file data loss issue » in the mailing list.</div><div><br></div><div><blockquote type="cite" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); -webkit-text-size-adjust: auto;">The answer is there:<br></blockquote><blockquote type="cite" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); -webkit-text-size-adjust: auto;"><a href="https://gdal.org/drivers/raster/gpkg.html#tile-formats" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="6">https://gdal.org/drivers/raster/gpkg.html#tile-formats</a><br></blockquote><blockquote type="cite" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); -webkit-text-size-adjust: auto;"><br></blockquote><blockquote type="cite" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); -webkit-text-size-adjust: auto;">For Byte input (that isn't recognized as to be used by the tiled<br></blockquote><blockquote type="cite" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); -webkit-text-size-adjust: auto;">gridded coverage data), the default tile format will use JPEG lossy<br></blockquote><blockquote type="cite" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); -webkit-text-size-adjust: auto;">compression for tiles with a fully opaque channel.<br></blockquote><blockquote type="cite" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); -webkit-text-size-adjust: auto;"><br></blockquote><blockquote type="cite" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); -webkit-text-size-adjust: auto;">-co TILE_FORMAT=PNG will use lossless compression<br></blockquote><blockquote type="cite" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); -webkit-text-size-adjust: auto;"><br></blockquote><blockquote type="cite" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); -webkit-text-size-adjust: auto;">GeoPackage raster aim was initially for visualisation purposes, hence<br></blockquote><blockquote type="cite" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); -webkit-text-size-adjust: auto;">this default. The more analytic side was a later addition to the<br></blockquote><blockquote type="cite" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); -webkit-text-size-adjust: auto;">format, and actually an extension<br></blockquote><blockquote type="cite" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); -webkit-text-size-adjust: auto;"><br></blockquote><blockquote type="cite" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); -webkit-text-size-adjust: auto;">Even</blockquote><br><div dir="ltr">Nicolas Cadieux<div><a href="https://gitlab.com/njacadieux">https://gitlab.com/njacadieux</a></div></div><div dir="ltr"><br><blockquote type="cite">Le 6 avr. 2021 à 20:18, David Strip <qgis-user@stripfamily.net> a écrit :<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">
  

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  
  
    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. <br>
    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?<br>
    <br>
    Thanks<br>
    David
  

<span>_______________________________________________</span><br><span>Qgis-user mailing list</span><br><span>Qgis-user@lists.osgeo.org</span><br><span>List info: https://lists.osgeo.org/mailman/listinfo/qgis-user</span><br><span>Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user</span><br></div></blockquote></div></div></body></html>