<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,<br>
    </p>
    <p>Looking at it now.  I see what you see.  I will try a few things.</p>
    <p>Nicolas<br>
    </p>
    <div class="moz-cite-prefix">On 2020-12-01 11:42 a.m., Alberto
      Vavassori wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:AM0PR0602MB3716B8CECC02608C0292BE8AEEF40@AM0PR0602MB3716.eurprd06.prod.outlook.com">
      <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:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 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;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Preformattato HTML Carattere";
        margin:0cm;
        font-size:10.0pt;
        font-family:"Courier New";
        mso-fareast-language:IT;}
span.PreformattatoHTMLCarattere
        {mso-style-name:"Preformattato HTML Carattere";
        mso-style-priority:99;
        mso-style-link:"Preformattato HTML";
        font-family:Consolas;
        mso-fareast-language:EN-US;}
span.StileMessaggioDiPostaElettronica22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:324.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}</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">Hi Nicolas,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:12.0pt" lang="EN-US">thank
            you for the answer. I send the raster that I am interested
            in.<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>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
                  style="mso-fareast-language:IT">Da:</span></b><span
                style="mso-fareast-language:IT"> Nicolas Cadieux
                <a class="moz-txt-link-rfc2396E" href="mailto:njacadieux.gitlab@gmail.com"><njacadieux.gitlab@gmail.com></a>
                <br>
                <b>Inviato:</b> martedì 1 dicembre 2020 17:40<br>
                <b>A:</b> Alberto Vavassori
                <a class="moz-txt-link-rfc2396E" href="mailto:alberto.vavassori@polimi.it"><alberto.vavassori@polimi.it></a><br>
                <b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br>
                <b>Oggetto:</b> Re: [Qgis-user] Importing a raster into
                a Geopackage<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p>Hi,<span style="mso-fareast-language:IT"><o:p></o:p></span></p>
        <p>Send a sample data set if you can't figure it out.<o:p></o:p></p>
        <p>Nicolas<o:p></o:p></p>
        <div>
          <p class="MsoNormal">On 2020-12-01 10:35 a.m., Nicolas Cadieux
            wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal">Hi, <o:p></o:p></p>
          <div>
            <p class="MsoNormal">Perhaps this can help: <a
                href="https://gdal.orgdrivers/raster/gpkg.html"
                moz-do-not-send="true">https://gdal.orgdrivers/raster/gpkg.html</a><o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
          </div>
          <div>
            <p
style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:18.0pt;margin-left:0cm;line-height:18.0pt;box-sizing:
              border-box;caret-color: rgb(64, 64,
              64);-webkit-text-size-adjust: 100%">
              <span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#404040">“Various
                kind of input datasets can be converted to GeoPackage
                raster :<o:p></o:p></span></p>
            <p
style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:54.0pt;text-indent:-18.0pt;line-height:18.0pt;mso-list:l0
              level1 lfo1;box-sizing: border-box">
              <!--[if !supportLists]--><span
                style="font-size:10.0pt;font-family:Symbol;color:#404040"><span
                  style="mso-list:Ignore">·<span style="font:7.0pt
                    "Times New Roman"">       
                  </span></span></span><!--[endif]--><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#404040">Single
                band grey level<o:p></o:p></span></p>
            <p
style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:54.0pt;text-indent:-18.0pt;line-height:18.0pt;mso-list:l0
              level1 lfo1;box-sizing: border-box">
              <!--[if !supportLists]--><span
                style="font-size:10.0pt;font-family:Symbol;color:#404040"><span
                  style="mso-list:Ignore">·<span style="font:7.0pt
                    "Times New Roman"">       
                  </span></span></span><!--[endif]--><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#404040">Single
                band with R,G,B or R,G,B,A color table<o:p></o:p></span></p>
            <p
style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:54.0pt;text-indent:-18.0pt;line-height:18.0pt;mso-list:l0
              level1 lfo1;box-sizing: border-box">
              <!--[if !supportLists]--><span
                style="font-size:10.0pt;font-family:Symbol;color:#404040"><span
                  style="mso-list:Ignore">·<span style="font:7.0pt
                    "Times New Roman"">       
                  </span></span></span><!--[endif]--><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#404040">Two
                bands: first band with grey level, second band with
                alpha channel<o:p></o:p></span></p>
            <p
style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:54.0pt;text-indent:-18.0pt;line-height:18.0pt;mso-list:l0
              level1 lfo1;box-sizing: border-box">
              <!--[if !supportLists]--><span
                style="font-size:10.0pt;font-family:Symbol;color:#404040"><span
                  style="mso-list:Ignore">·<span style="font:7.0pt
                    "Times New Roman"">       
                  </span></span></span><!--[endif]--><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#404040">Three
                bands: Red, Green, Blue<o:p></o:p></span></p>
            <p
style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:54.0pt;text-indent:-18.0pt;line-height:18.0pt;mso-list:l0
              level1 lfo1;box-sizing: border-box">
              <!--[if !supportLists]--><span
                style="font-size:10.0pt;font-family:Symbol;color:#404040"><span
                  style="mso-list:Ignore">·<span style="font:7.0pt
                    "Times New Roman"">       
                  </span></span></span><!--[endif]--><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#404040">Four
                band: Red, Green, Blue, Alpha<o:p></o:p></span></p>
            <p
style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:18.0pt;margin-left:0cm;line-height:18.0pt;box-sizing:
              border-box;caret-color: rgb(64, 64,
              64);-webkit-text-size-adjust: 100%">
              <span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#404040">GeoPackage
                rasters only support Byte data type.”<o:p></o:p></span></p>
            <p
style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:18.0pt;margin-left:0cm;line-height:18.0pt;box-sizing:
              border-box;caret-color: rgb(64, 64,
              64);-webkit-text-size-adjust: 100%">
              <span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#404040">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. <o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
            <div>
              <p class="MsoNormal">Nicolas Cadieux <o:p></o:p></p>
              <div>
                <p class="MsoNormal"><a
                    href="https://gitlab.com/njacadieux"
                    moz-do-not-send="true">https://gitlab.com/njacadieux</a><o:p></o:p></p>
              </div>
            </div>
            <div>
              <p class="MsoNormal"><br>
                <br>
                <o:p></o:p></p>
              <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
                <p class="MsoNormal" style="margin-bottom:12.0pt">Le 1
                  déc. 2020 à 09:58, Alberto Vavassori
                  <a href="mailto:alberto.vavassori@polimi.it"
                    moz-do-not-send="true"><alberto.vavassori@polimi.it></a>
                  a écrit :<o:p></o:p></p>
              </blockquote>
            </div>
            <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
              <div>
                <p class="MsoNormal"> <span
                    style="mso-fareast-language:IT"><o:p></o:p></span></p>
                <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.</span><o:p></o:p></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?</span><o:p></o:p></p>
                <p class="MsoNormal"><span style="font-size:12.0pt"
                    lang="EN-US">Thank you.</span><o:p></o:p></p>
                <p class="MsoNormal"><span style="font-size:12.0pt"
                    lang="EN-US">Alberto</span><o:p></o:p></p>
                <p class="MsoNormal"><span
                    style="mso-fareast-language:IT">_______________________________________________<br>
                    Qgis-user mailing list<br>
                    <a href="mailto:Qgis-user@lists.osgeo.org"
                      moz-do-not-send="true">Qgis-user@lists.osgeo.org</a><br>
                    List info: <a
                      href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
                      moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
                    Unsubscribe: <a
                      href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
                      moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><o:p></o:p></span></p>
              </div>
            </blockquote>
          </div>
        </blockquote>
        <pre>-- <o:p></o:p></pre>
        <pre>Nicolas Cadieux<o:p></o:p></pre>
        <pre><a href="https://gitlab.com/njacadieux" moz-do-not-send="true">https://gitlab.com/njacadieux</a><o:p></o:p></pre>
      </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>