<div dir="ltr"><div dir="ltr"><div dir="ltr">Hello, I'm trying to save a byte raster to a geopackage. I ran into a problem that the geopackage raster driver does not behave as expected when working with bytes and color tables. I have written a python script that explains the issue (attached):<div><br></div><div>The script creates 4 rasters in similar ways but prints different outputs:</div><div><br></div><div><div>GTIFF(no palette):  Minimum=0, Maximum=9, Color Table=False, band count=1</div><div>GTIFF(palette):  Minimum=0, Maximum=9, Color Table=True, band count=1</div><div>GPKG(no palette):  Minimum=0, Maximum=9, Color Table=False, band count=4</div><div>GPKG(palette):  Minimum=0, Maximum=255, Color Table=False, band count=4</div></div><div><br></div><div>The problem is that even though we set a color table in the geopackage when writing, it reads as having no color table when reading. Worse yet, the original raster values are lost when written with a color table.</div><div><br></div><div>Is there any workaround or fix for this? We want to be able to keep non-image byte data with a palette to geopackage.</div><div><br></div><div>Regards, Ben</div></div></div></div>