<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,<br>
    </p>
    <p>Send a sample data set if you can't figure it out.</p>
    <p>Nicolas<br>
    </p>
    <div class="moz-cite-prefix">On 2020-12-01 10:35 a.m., Nicolas
      Cadieux wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:38B34958-D7D0-41DC-8BEB-9A4F6A1999AE@gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      Hi,
      <div>Perhaps this can help: <a
          href="https://gdal.orgdrivers/raster/gpkg.html"
          moz-do-not-send="true">https://gdal.orgdrivers/raster/gpkg.html</a></div>
      <div><br>
      </div>
      <div>
        <p style="font-size: 16px; box-sizing: border-box; line-height:
          24px; margin: 0px 0px 24px; caret-color: rgb(64, 64, 64);
          color: rgb(64, 64, 64); font-family: Lato, proxima-nova,
          "Helvetica Neue", Arial, sans-serif;
          -webkit-text-size-adjust: 100%;">“Various kind of input
          datasets can be converted to GeoPackage raster :</p>
        <ul class="simple" style="font-size: 16px; box-sizing:
          border-box; margin: 0px 0px 24px; padding: 0px;
          list-style-position: initial; list-style-image: initial;
          line-height: 24px; caret-color: rgb(64, 64, 64); color:
          rgb(64, 64, 64); font-family: Lato, proxima-nova,
          "Helvetica Neue", Arial, sans-serif;
          -webkit-text-size-adjust: 100%;">
          <li style="box-sizing: border-box; list-style: disc;
            margin-left: 24px;">
            <p style="box-sizing: border-box; line-height: 24px; margin:
              0px;">Single band grey level</p>
          </li>
          <li style="box-sizing: border-box; list-style: disc;
            margin-left: 24px;">
            <p style="box-sizing: border-box; line-height: 24px; margin:
              0px;">Single band with R,G,B or R,G,B,A color table</p>
          </li>
          <li style="box-sizing: border-box; list-style: disc;
            margin-left: 24px;">
            <p style="box-sizing: border-box; line-height: 24px; margin:
              0px;">Two bands: first band with grey level, second band
              with alpha channel</p>
          </li>
          <li style="box-sizing: border-box; list-style: disc;
            margin-left: 24px;">
            <p style="box-sizing: border-box; line-height: 24px; margin:
              0px;">Three bands: Red, Green, Blue</p>
          </li>
          <li style="box-sizing: border-box; list-style: disc;
            margin-left: 24px;">
            <p style="box-sizing: border-box; line-height: 24px; margin:
              0px;">Four band: Red, Green, Blue, Alpha</p>
          </li>
        </ul>
        <p style="font-size: 16px; box-sizing: border-box; line-height:
          24px; margin: 0px 0px 24px; caret-color: rgb(64, 64, 64);
          color: rgb(64, 64, 64); font-family: Lato, proxima-nova,
          "Helvetica Neue", Arial, sans-serif;
          -webkit-text-size-adjust: 100%;">GeoPackage rasters only
          support Byte data type.”</p>
        <p style="font-size: 16px; box-sizing: border-box; line-height:
          24px; margin: 0px 0px 24px; caret-color: rgb(64, 64, 64);
          color: rgb(64, 64, 64); font-family: Lato, proxima-nova,
          "Helvetica Neue", Arial, sans-serif;
          -webkit-text-size-adjust: 100%;">My guess is that if the
          original raster does not correspond to one of the categories
          above, it will be converted to the closest format. </p>
      </div>
      <div><br>
        <div dir="ltr">Nicolas Cadieux
          <div><a href="https://gitlab.com/njacadieux"
              moz-do-not-send="true">https://gitlab.com/njacadieux</a></div>
        </div>
        <div dir="ltr"><br>
          <blockquote type="cite">Le 1 déc. 2020 à 09:58, Alberto
            Vavassori <a class="moz-txt-link-rfc2396E" href="mailto:alberto.vavassori@polimi.it"><alberto.vavassori@polimi.it></a> a écrit :<br>
            <br>
          </blockquote>
        </div>
        <blockquote type="cite">
          <div dir="ltr">
            <meta http-equiv="Content-Type" content="text/html;
              charset=UTF-8">
            <meta name="Generator" content="Microsoft Word 15 (filtered
              medium)">
            <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.StileMessaggioDiPostaElettronica17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
            <div class="WordSection1">
              <p class="MsoNormal"><span style="font-size:12.0pt"
                  lang="EN-US">Hello everybody. I have an issue
                  regarding the Geopackage format. I have tried to
                  import a singleband raster file (it represents the
                  land cover, thus every pixel has a single integer
                  value corresponding to the land cover class), but this
                  operation seems to modify the raster characteristics:
                  the raster becomes a 4-bands raster and the pixels
                  values change accordingly (basically, the original
                  raster is saved in the Geopackage as an RGB image). It
                  seems to be a bug of QGIS. I have also tried to use
                  GDAL translate through the processing toolbox of QGIS
                  to convert the TIFF file to a Geopackage file, but the
                  result is the same.<o:p></o:p></span></p>
              <p class="MsoNormal"><span style="font-size:12.0pt"
                  lang="EN-US">Has anybody faced this problem? May
                  anybody suggest a way to work this problem out?<o:p></o:p></span></p>
              <p class="MsoNormal"><span style="font-size:12.0pt"
                  lang="EN-US">Thank you.<o:p></o:p></span></p>
              <p class="MsoNormal"><span style="font-size:12.0pt"
                  lang="EN-US">Alberto<o:p></o:p></span></p>
            </div>
            <span>_______________________________________________</span><br>
            <span>Qgis-user mailing list</span><br>
            <span><a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a></span><br>
            <span>List info:
              <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span><br>
            <span>Unsubscribe:
              <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span><br>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Nicolas Cadieux
<a class="moz-txt-link-freetext" href="https://gitlab.com/njacadieux">https://gitlab.com/njacadieux</a></pre>
  </body>
</html>